https://github.com/GPflow/GPflow
Revision a8135157bfb968d94fb27bdf1970e31faf9ae5df authored by Felix Leibfried on 22 October 2019, 13:13:55 UTC, committed by st-- on 22 October 2019, 13:13:55 UTC

* explicitly set method="L-BFGS-B" and rerun
1 parent b0ddc6d
Raw File
Tip revision: a8135157bfb968d94fb27bdf1970e31faf9ae5df authored by Felix Leibfried on 22 October 2019, 13:13:55 UTC
GPflow2.0 notebook update: coregionalisation.ipynb (#1072)
Tip revision: a813515
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