https://github.com/GPflow/GPflow
Raw File
Tip revision: 816a41f081fb5f8d1c33aaf7b7866fcf393b0898 authored by thevincentadam on 02 February 2020, 21:14:05 UTC
update models and parse
Tip revision: 816a41f
util.py
import numpy as np

from ..inducing_variables import InducingVariables, InducingPoints


def inducingpoint_wrapper(inducing_variable):
    """
    This wrapper allows transparently passing either an InducingVariables
    object or an array specifying InducingPoints positions.
    """
    if not isinstance(inducing_variable, InducingVariables):
        inducing_variable = InducingPoints(inducing_variable)
    return inducing_variable
back to top