https://github.com/GPflow/GPflow
Raw File
Tip revision: ff13e612910cfcb6b83f2e8d4cc8627888bffe92 authored by Sergio Diaz on 21 March 2019, 13:41:09 UTC
fixing imports
Tip revision: ff13e61
util.py
import numpy as np

from ..features import InducingPoints


def inducingpoint_wrapper(feature):
    """
    Models which used to take only Z can now pass `feat` and `Z` to this method. This method will
    check for consistency and return the correct feature. This allows backwards compatibility in
    for the methods.
    """
    if isinstance(feature, np.ndarray):
        feature = InducingPoints(feature)
    return feature
back to top