package sklearn
Module Base.OutlierMixinSource
Source
val fit_predict :
?y:Py.Object.t ->
x:[> `ArrayLike ] Np.Obj.t ->
[> tag ] Obj.t ->
[> `ArrayLike ] Np.Obj.tPerform fit on X and returns labels for X.
Returns -1 for outliers and 1 for inliers.
Parameters ---------- X : array-like, sparse matrix, dataframe of shape (n_samples, n_features)
y : Ignored Not used, present for API consistency by convention.
Returns ------- y : ndarray of shape (n_samples,) 1 for inliers, -1 for outliers.
Pretty-print the object to a formatter.