Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
The labels (ground truth) of the input samples
Returns
-------
self : object
Examples
--------
Load the SOM and fit it to your input data `X` and the labels `y` with:
>>> import susi
>>> som = susi.SOMRegressor()
>>> som.fit(X, y)
"""
X, y = check_estimation_input(X, y)
return self.fit_estimator(X, y)
The labels (ground truth) of the input samples
Returns
-------
self : object
Examples
--------
Load the SOM and fit it to your input data `X` and the labels `y` with:
>>> import susi
>>> som = susi.SOMClassifier()
>>> som.fit(X, y)
"""
X, y = check_estimation_input(X, y, is_classification=True)
return self.fit_estimator(X, y)