Revision 0b416af3d92d6ef1d42ab49d450c433043f4bbdc authored by Artem Artemev on 01 May 2019, 21:06:53 UTC, committed by Artem Artemev on 01 May 2019, 21:06:53 UTC
1 parent b1c3983
util.py
import numpy as np
from ..features import InducingPoints
def inducingpoint_wrapper(feature):
"""
Models which used to take only Z can now pass `feature` 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
Computing file changes ...