def fit(self, X, y=None): self._sklearn_model = SKLModel(**self._hyperparams) if (y is not None): self._sklearn_model.fit(X, y) else: self._sklearn_model.fit(X) return self
def __init__(self, n_components=2, scale=True, copy=True): self._hyperparams = { 'n_components': n_components, 'scale': scale, 'copy': copy } self._wrapped_model = SKLModel(**self._hyperparams)
def __init__(self, n_components=2, scale=True, max_iter=500, tol=1e-06, copy=True): self._hyperparams = { 'n_components': n_components, 'scale': scale, 'max_iter': max_iter, 'tol': tol, 'copy': copy} self._wrapped_model = SKLModel(**self._hyperparams)