sdkagent

scikit-learn API reference

400 public APIs from scikit-learn (scikit-learn/scikit-learn) — 241 classes, 72 functions, 87 methods. Signatures extracted by static analysis of the actual source.

Repository: scikit-learn/scikit-learn

KindCount
Classes241
Functions72
Methods87

API list

funcsklearn._config.get_config()
Retrieve the current scikit-learn configuration.
classsklearn._loss.link.BaseLink
Abstract base class for differentiable, invertible link functions.
methodsklearn._loss.link.BaseLink.link(y_pred)
Compute the link function g(y_pred).
classsklearn._loss.link.HalfLogitLink
Half the logit link function g(x)=1/2 * logit(x).
classsklearn._loss.link.IdentityLink
The identity link function g(x)=x.
classsklearn._loss.link.LogLink
The log link function g(x)=log(x).
classsklearn._loss.link.LogitLink
The logit link function g(x)=logit(x).
classsklearn._loss.link.MultinomialLogit
The symmetric multinomial logit function.
classsklearn._loss.loss.AbsoluteError
Absolute error with identity link, for regression.
classsklearn._loss.loss.BaseLoss
Base class for a loss function of 1-dimensional targets.
classsklearn._loss.loss.HalfGammaLoss
Half Gamma deviance loss with log-link, for regression.
classsklearn._loss.loss.HalfPoissonLoss
Half Poisson deviance loss with log-link, for regression.
classsklearn._loss.loss.HalfSquaredError
Half squared error with identity link, for regression.
classsklearn._loss.loss.HalfTweedieLoss
Half Tweedie deviance loss with log-link, for regression.
classsklearn._loss.loss.HuberLoss
Huber loss, for regression.
classsklearn._loss.loss.PinballLoss
Quantile loss aka pinball loss, for regression.
classsklearn.base.BaseEstimator
Base class for all estimators in scikit-learn.
methodsklearn.base.BaseEstimator.get_params(deep=True)
Get parameters for this estimator.
methodsklearn.base.BaseEstimator.set_params(**params)
Set the parameters of this estimator.
classsklearn.base.BiclusterMixin
Mixin class for all bicluster estimators in scikit-learn.
methodsklearn.base.BiclusterMixin.get_shape(i)
Shape of the `i`'th bicluster.
classsklearn.base.ClassifierMixin
Mixin class for all classifiers in scikit-learn.
classsklearn.base.ClusterMixin
Mixin class for all cluster estimators in scikit-learn.
classsklearn.base.DensityMixin
Mixin class for all density estimators in scikit-learn.
classsklearn.base.MetaEstimatorMixin
Mixin class for all meta estimators in scikit-learn.
classsklearn.base.MultiOutputMixin
Mixin to mark estimators that support multioutput.
classsklearn.base.OneToOneFeatureMixin
Provides `get_feature_names_out` for simple transformers.
classsklearn.base.RegressorMixin
Mixin class for all regression estimators in scikit-learn.
classsklearn.base.TransformerMixin
Mixin class for all transformers in scikit-learn.
classsklearn.callback._callback_context.CallbackContext
Task level context for the callbacks.
classsklearn.callback._progressbar.RichTask
A task, i.e.
classsklearn.callback._scoring_monitor.ScoringMonitorLog
Log for one run of a scoring monitor.
classsklearn.callback._transport.ListenerHandle
A picklable reference to a main-process listener.
classsklearn.cluster._affinity_propagation.AffinityPropagation
Perform Affinity Propagation Clustering of data.
classsklearn.cluster._agglomerative.AgglomerativeClustering
Agglomerative Clustering.
classsklearn.cluster._agglomerative.FeatureAgglomeration
Agglomerate features.
classsklearn.cluster._bicluster.BaseSpectral
Base class for spectral biclustering.
methodsklearn.cluster._bicluster.BaseSpectral.fit(X, y=None)
Create a biclustering for X.
classsklearn.cluster._bicluster.SpectralBiclustering
Spectral biclustering (Kluger, 2003) [1]_.
classsklearn.cluster._birch.Birch
Implements the BIRCH clustering algorithm.
methodsklearn.cluster._birch.Birch.fit(X, y=None)
Build a CF Tree for the input data.
methodsklearn.cluster._birch.Birch.partial_fit(X=None, y=None)
Online learning.
classsklearn.cluster._bisect_k_means.BisectingKMeans
Bisecting K-Means clustering.
classsklearn.cluster._kmeans.KMeans
K-Means clustering.
methodsklearn.cluster._kmeans.KMeans.fit(X, y=None, sample_weight=None)
Compute k-means clustering.
classsklearn.cluster._kmeans.MiniBatchKMeans
Mini-Batch K-Means clustering.
classsklearn.cluster._mean_shift.MeanShift
Mean shift clustering using a flat kernel.
methodsklearn.cluster._mean_shift.MeanShift.fit(X, y=None)
Perform clustering.
funcsklearn.cluster._mean_shift.get_bin_seeds(X, bin_size, min_bin_freq=1)
Find seeds for mean_shift.
classsklearn.cluster._optics.OPTICS
Estimate clustering structure from vector array.
methodsklearn.cluster._optics.OPTICS.fit(X, y=None)
Perform OPTICS clustering.
classsklearn.compose._target.TransformedTargetRegressor
Meta-estimator to regress on a transformed target.
classsklearn.covariance._empirical_covariance.EmpiricalCovariance
Maximum likelihood covariance estimator.
classsklearn.covariance._shrunk_covariance.LedoitWolf
LedoitWolf Estimator.
classsklearn.covariance._shrunk_covariance.OAS
Oracle Approximating Shrinkage Estimator.
classsklearn.covariance._shrunk_covariance.ShrunkCovariance
Covariance estimator with shrinkage.
classsklearn.cross_decomposition._pls.PLSCanonical
Partial Least Squares transformer and regressor.
classsklearn.cross_decomposition._pls.PLSRegression
PLS regression.
methodsklearn.cross_decomposition._pls.PLSRegression.fit(X, y)
Fit model to data.
classsklearn.cross_decomposition._pls.PLSSVD
Partial Least Square SVD.
methodsklearn.cross_decomposition._pls.PLSSVD.fit(X, y)
Fit model to data.
funcsklearn.datasets._base.get_data_home(data_home=None) -> str
Return the path of the scikit-learn data directory.
classsklearn.decomposition._dict_learning.DictionaryLearning
Dictionary learning.
classsklearn.decomposition._dict_learning.MiniBatchDictionaryLearning
Mini-batch dictionary learning.
classsklearn.decomposition._dict_learning.SparseCoder
Sparse coding.
classsklearn.decomposition._factor_analysis.FactorAnalysis
Factor Analysis (FA).
classsklearn.decomposition._incremental_pca.IncrementalPCA
Incremental principal components analysis (IPCA).
classsklearn.decomposition._kernel_pca.KernelPCA
Kernel Principal component analysis (KPCA).
methodsklearn.decomposition._kernel_pca.KernelPCA.fit(X, y=None)
Fit the model from data in X.
methodsklearn.decomposition._kernel_pca.KernelPCA.transform(X)
Transform X.
classsklearn.decomposition._nmf.MiniBatchNMF
Mini-Batch Non-Negative Matrix Factorization (NMF).
classsklearn.decomposition._nmf.NMF
Non-Negative Matrix Factorization (NMF).
funcsklearn.decomposition._nmf.trace_dot(X, Y)
Trace of np.dot(X, Y.T).
classsklearn.decomposition._pca.PCA
Principal component analysis (PCA).
methodsklearn.decomposition._pca.PCA.fit(X, y=None)
Fit the model with X.
classsklearn.decomposition._sparse_pca.MiniBatchSparsePCA
Mini-batch Sparse Principal Components Analysis.
classsklearn.decomposition._sparse_pca.SparsePCA
Sparse Principal Components Analysis (SparsePCA).
classsklearn.discriminant_analysis.LinearDiscriminantAnalysis
Linear Discriminant Analysis.
methodsklearn.discriminant_analysis.LinearDiscriminantAnalysis.predict_proba(X)
Estimate probability.
classsklearn.discriminant_analysis.QuadraticDiscriminantAnalysis
Quadratic Discriminant Analysis.
classsklearn.dummy.DummyRegressor
Regressor that makes predictions using simple rules.
methodsklearn.dummy.DummyRegressor.fit(X, y, sample_weight=None)
Fit the baseline regressor.
classsklearn.ensemble._bagging.BaggingClassifier
A Bagging classifier.
methodsklearn.ensemble._bagging.BaggingClassifier.predict(X, **params)
Predict class for X.
classsklearn.ensemble._bagging.BaggingRegressor
A Bagging regressor.
classsklearn.ensemble._bagging.BaseBagging
Base class for Bagging meta-estimator.
classsklearn.ensemble._base.BaseEnsemble
Base class for all ensemble classes.
classsklearn.ensemble._forest.BaseForest
Base class for forests of trees.
classsklearn.ensemble._forest.ExtraTreesClassifier
An extra-trees classifier.
classsklearn.ensemble._forest.ExtraTreesRegressor
An extra-trees regressor.
classsklearn.ensemble._forest.ForestClassifier
Base class for forest of trees-based classifiers.
methodsklearn.ensemble._forest.ForestClassifier.predict(X)
Predict class for X.
classsklearn.ensemble._forest.ForestRegressor
Base class for forest of trees-based regressors.
methodsklearn.ensemble._forest.ForestRegressor.predict(X)
Predict regression target for X.
classsklearn.ensemble._forest.RandomForestClassifier
A random forest classifier.
classsklearn.ensemble._forest.RandomForestRegressor
A random forest regressor.
classsklearn.ensemble._forest.RandomTreesEmbedding
An ensemble of totally random trees.
methodsklearn.ensemble._forest.RandomTreesEmbedding.fit(X, y=None, sample_weight=None)
Fit estimator.
methodsklearn.ensemble._forest.RandomTreesEmbedding.transform(X)
Transform dataset.
classsklearn.ensemble._gb.BaseGradientBoosting
Abstract base class for Gradient Boosting.
classsklearn.ensemble._gb.GradientBoostingClassifier
Gradient Boosting for classification.
methodsklearn.ensemble._gb.GradientBoostingClassifier.predict(X)
Predict class for X.
classsklearn.ensemble._gb.GradientBoostingRegressor
Gradient Boosting for regression.
classsklearn.ensemble._gb.VerboseReporter
Reports verbose output to stdout.
classsklearn.ensemble._hist_gradient_boosting.grower.TreeGrower
Tree grower class used to build a tree.
classsklearn.ensemble._hist_gradient_boosting.grower.TreeNode
Tree Node class used in TreeGrower.
classsklearn.ensemble._hist_gradient_boosting.predictor.TreePredictor
Tree class used for predictions.
classsklearn.ensemble._iforest.IsolationForest
Isolation Forest Algorithm.
methodsklearn.ensemble._iforest.IsolationForest.fit(X, y=None, sample_weight=None)
Fit estimator.
classsklearn.ensemble._stacking.StackingClassifier
Stack of estimators with a final classifier.
methodsklearn.ensemble._stacking.StackingClassifier.fit(X, y, **fit_params)
Fit the estimators.
methodsklearn.ensemble._stacking.StackingClassifier.predict(X, **predict_params)
Predict target for X.
classsklearn.ensemble._stacking.StackingRegressor
Stack of estimators with a final regressor.
methodsklearn.ensemble._stacking.StackingRegressor.fit(X, y, **fit_params)
Fit the estimators.
methodsklearn.ensemble._stacking.StackingRegressor.predict(X, **predict_params)
Predict target for X.
classsklearn.ensemble._voting.VotingRegressor
Prediction voting regressor for unfitted estimators.
methodsklearn.ensemble._voting.VotingRegressor.fit(X, y, **fit_params)
Fit the estimators.
methodsklearn.ensemble._voting.VotingRegressor.predict(X)
Predict regression target for X.
classsklearn.ensemble._weight_boosting.AdaBoostClassifier
An AdaBoost classifier.
methodsklearn.ensemble._weight_boosting.AdaBoostClassifier.predict(X)
Predict classes for X.
classsklearn.ensemble._weight_boosting.AdaBoostRegressor
An AdaBoost regressor.
classsklearn.ensemble._weight_boosting.BaseWeightBoosting
Base class for AdaBoost estimators.
classsklearn.exceptions.ConvergenceWarning
Custom warning to capture convergence problems ..
classsklearn.exceptions.NotFittedError
Exception class to raise if estimator is used before fitting.
classsklearn.exceptions.UndefinedMetricWarning
Warning used when the metric is invalid ..
classsklearn.externals._arff.ArffDecoder
An ARFF decoder.
classsklearn.externals._arff.ArffEncoder
An ARFF encoder.
classsklearn.externals._numpydoc.docscrape.Reader
A line-based string reader.
funcsklearn.externals.array_api_compat._internal.clone_module(mod_name:str, globals_:dict[str, object]) -> list[str]
Import everything from module, updating globals().
funcsklearn.externals.array_api_compat.common._helpers.device(x:_ArrayApiObj) -> Device
Hardware device the array data resides on.
funcsklearn.externals.array_api_compat.common._helpers.is_cupy_array(x:object) -> bool
Return True if `x` is a CuPy array.
funcsklearn.externals.array_api_compat.common._helpers.is_cupy_namespace(xp:Namespace) -> bool
Returns True if `xp` is a CuPy namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_dask_array(x:object) -> TypeIs[da.Array]
Return True if `x` is a dask.array Array.
funcsklearn.externals.array_api_compat.common._helpers.is_dask_namespace(xp:Namespace) -> bool
Returns True if `xp` is a Dask namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_jax_array(x:object) -> TypeIs[jax.Array]
Return True if `x` is a JAX array.
funcsklearn.externals.array_api_compat.common._helpers.is_jax_namespace(xp:Namespace) -> bool
Returns True if `xp` is a JAX namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_ndonnx_array(x:object) -> TypeIs[ndx.Array]
Return True if `x` is a ndonnx Array.
funcsklearn.externals.array_api_compat.common._helpers.is_ndonnx_namespace(xp:Namespace) -> bool
Returns True if `xp` is an NDONNX namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_numpy_array(x:object) -> TypeIs[npt.NDArray[Any]]
Return True if `x` is a NumPy array.
funcsklearn.externals.array_api_compat.common._helpers.is_numpy_namespace(xp:Namespace) -> bool
Returns True if `xp` is a NumPy namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_pydata_sparse_namespace(xp:Namespace) -> bool
Returns True if `xp` is a pydata/sparse namespace.
funcsklearn.externals.array_api_compat.common._helpers.is_torch_array(x:object) -> TypeIs[torch.Tensor]
Return True if `x` is a PyTorch tensor.
funcsklearn.externals.array_api_compat.common._helpers.is_torch_namespace(xp:Namespace) -> bool
Returns True if `xp` is a PyTorch namespace.
funcsklearn.externals.array_api_compat.cupy._aliases.asarray(obj:Array | complex | NestedSequence[complex] | SupportsBufferProtocol, *dtype:DType | None=None, *device:Device | None=None, *copy:py_bool | None=None, **kwargs:object) -> Array
Array API compatibility wrapper for asarray().
funcsklearn.externals.array_api_compat.dask.array._aliases.astype(x:Array, dtype:DType, *copy:py_bool=True, *device:Device | None=None) -> Array
Array API compatibility wrapper for astype().
funcsklearn.externals.array_api_compat.dask.array._aliases.clip(x:Array, min:float | Array | None=None, max:float | Array | None=None) -> Array
Array API compatibility wrapper for clip().
funcsklearn.externals.array_api_extra._delegation.create_diagonal(x:Array, *offset:int=0, *xp:ModuleType | None=None) -> Array
Construct a diagonal array.
funcsklearn.externals.array_api_extra._delegation.expand_dims(a:Array, *axis:int | tuple[int, ...]=(0,), *xp:ModuleType | None=None) -> Array
Expand the shape of an array.
funcsklearn.externals.array_api_extra._delegation.kron(a:Array | complex, b:Array | complex, *xp:ModuleType | None=None) -> Array
Kronecker product of two arrays.
funcsklearn.externals.array_api_extra._delegation.one_hot(x:Array, num_classes:int, *dtype:DType | None=None, *axis:int=-1, *xp:ModuleType | None=None) -> Array
One-hot encode the given indices.
funcsklearn.externals.array_api_extra._delegation.pad(x:Array, pad_width:int | tuple[int, int] | Sequence[tuple[int, int]], mode:Literal['constant']='constant', *constant_values:complex=0, *xp:ModuleType | None=None) -> Array
Pad the input array.
funcsklearn.externals.array_api_extra._delegation.partition(a:Array, kth:int, axis:int | None=-1, *xp:ModuleType | None=None) -> Array
Return a partitioned copy of an array.
funcsklearn.externals.array_api_extra._delegation.setdiff1d(x1:Array | complex, x2:Array | complex, *assume_unique:bool=False, *xp:ModuleType | None=None) -> Array
Find the set difference of two arrays.
funcsklearn.externals.array_api_extra._delegation.sinc(x:Array, *xp:ModuleType | None=None) -> Array
Return the normalized sinc function.
funcsklearn.externals.array_api_extra._delegation.union1d(a:Array, b:Array, *xp:ModuleType | None=None) -> Array
Find the union of two arrays.
classsklearn.externals.array_api_extra._lib._at.Undef
Sentinel for undefined values.
classsklearn.externals.array_api_extra._lib._at.at
Update operations for read-only arrays.
methodsklearn.externals.array_api_extra._lib._at.at.add(y:Array | complex, copy:bool | None=None, xp:ModuleType | None=None) -> Array
Apply ``x[idx] += y`` and return the updated array.
methodsklearn.externals.array_api_extra._lib._at.at.divide(y:Array | complex, copy:bool | None=None, xp:ModuleType | None=None) -> Array
Apply ``x[idx] /= y`` and return the updated array.
methodsklearn.externals.array_api_extra._lib._at.at.multiply(y:Array | complex, copy:bool | None=None, xp:ModuleType | None=None) -> Array
Apply ``x[idx] *= y`` and return the updated array.
methodsklearn.externals.array_api_extra._lib._at.at.set(y:Array | complex, copy:bool | None=None, xp:ModuleType | None=None) -> Array
Apply ``x[idx] = y`` and return the update array.
methodsklearn.externals.array_api_extra._lib._backends.Backend.like(*others:Backend) -> bool
Check if this backend uses the same module as others.
methodsklearn.externals.array_api_extra._lib._backends.Backend.modname() -> str
Module name to be imported.
methodsklearn.externals.array_api_extra._lib._backends.Backend.pytest_param() -> Any
Backend as a pytest parameter.
funcsklearn.externals.array_api_extra._lib._funcs.angle(z:Array, *deg:bool=False, *xp:ModuleType | None=None) -> Array
Return the angle of the complex argument.
funcsklearn.externals.array_api_extra._lib._funcs.argpartition(x:Array, kth:int, axis:int=-1, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._funcs.atleast_nd(x:Array, *ndim:int, *xp:ModuleType) -> Array
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.broadcast_shapes(*shapes:tuple[float | None, ...]) -> tuple[int | None, ...]
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.cov(m:Array, *xp:ModuleType) -> Array
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.create_diagonal(x:Array, *offset:int=0, *xp:ModuleType) -> Array
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.expand_dims(a:Array, *axis:tuple[int, ...]=(0,), *xp:ModuleType) -> Array
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.kron(a:Array, b:Array, *xp:ModuleType) -> Array
See docstring in array_api_extra._delegation.
funcsklearn.externals.array_api_extra._lib._funcs.nan_to_num(x:Array, fill_value:int | float=0.0, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._funcs.nunique(x:Array, *xp:ModuleType | None=None) -> Array
Count the number of unique elements in an array.
funcsklearn.externals.array_api_extra._lib._funcs.one_hot(x:Array, num_classes:int, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._funcs.partition(x:Array, kth:int, axis:int=-1, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._funcs.perform_replacements(x:Array, fill_value:int | float, xp:ModuleType) -> Array
Internal function to perform the replacements.
funcsklearn.externals.array_api_extra._lib._funcs.sinc(x:Array, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._funcs.union1d(a:Array, b:Array, *xp:ModuleType) -> Array
See docstring in `array_api_extra._delegation.py`.
funcsklearn.externals.array_api_extra._lib._utils._helpers.asarrays(a:Array | complex, b:Array | complex, xp:ModuleType) -> tuple[Array, Array]
Ensure both `a` and `b` are arrays.
funcsklearn.externals.array_api_extra._lib._utils._helpers.eager_shape(x:Array, axis:int | None=None) -> tuple[int, ...]
Return shape of an array.
funcsklearn.externals.array_api_extra._lib._utils._helpers.meta_namespace(*xp:ModuleType | None=None, *arrays:Array | complex | None) -> ModuleType
Get the namespace of Dask chunks.
funcsklearn.externals.array_api_extra._lib._utils._helpers.pickle_unflatten(instances:Iterable[object], rest:FlattenRest) -> Any
Reverse of ``pickle_flatten``.
classsklearn.externals.array_api_extra.testing.Deprecated
Unique type for deprecated parameters.
funcsklearn.externals.array_api_extra.testing.temp_setattr(target:ModuleType | type, name:str, func:object) -> None
Temporary setattr.
classsklearn.feature_extraction._hash.FeatureHasher
Implements feature hashing, aka the hashing trick.
classsklearn.feature_extraction.image.PatchExtractor
Extracts patches from a collection of images.
classsklearn.feature_selection._rfe.RFE
Feature ranking with recursive feature elimination.
funcsklearn.feature_selection._univariate_selection.f_oneway(*args)
Perform a 1-way ANOVA.
classsklearn.gaussian_process._gpr.GaussianProcessRegressor
Gaussian process regression (GPR).
classsklearn.gaussian_process.kernels.CompoundKernel
Kernel which is composed of a set of other kernels.
classsklearn.gaussian_process.kernels.ConstantKernel
Constant kernel.
classsklearn.gaussian_process.kernels.DotProduct
Dot-Product kernel.
classsklearn.gaussian_process.kernels.ExpSineSquared
Exp-Sine-Squared kernel (aka periodic kernel).
classsklearn.gaussian_process.kernels.Kernel
Base class for all kernels.
methodsklearn.gaussian_process.kernels.Kernel.get_params(deep=True)
Get parameters of this kernel.
classsklearn.gaussian_process.kernels.KernelOperator
Base class for all kernel operators.
classsklearn.gaussian_process.kernels.Matern
Matern kernel.
classsklearn.gaussian_process.kernels.NormalizedKernelMixin
Mixin for kernels which are normalized: k(X, X)=1.
classsklearn.gaussian_process.kernels.PairwiseKernel
Wrapper for kernels in sklearn.metrics.pairwise.
classsklearn.gaussian_process.kernels.RationalQuadratic
Rational Quadratic kernel.
classsklearn.gaussian_process.kernels.WhiteKernel
White kernel.
classsklearn.impute._base.MissingIndicator
Binary indicators for missing values.
methodsklearn.impute._base.MissingIndicator.fit(X, y=None)
Fit the transformer on `X`.
methodsklearn.impute._base.SimpleImputer.fit(X, y=None)
Fit the imputer on `X`.
methodsklearn.impute._base.SimpleImputer.transform(X)
Impute all missing values in `X`.
classsklearn.inspection._plot.decision_boundary.DecisionBoundaryDisplay
Decisions boundary visualization.
classsklearn.isotonic.IsotonicRegression
Isotonic regression model.
classsklearn.kernel_approximation.AdditiveChi2Sampler
Approximate feature map for additive chi2 kernel.
classsklearn.kernel_approximation.PolynomialCountSketch
Polynomial kernel approximation via Tensor Sketch.
methodsklearn.kernel_approximation.PolynomialCountSketch.fit(X, y=None)
Fit the model with X.
methodsklearn.kernel_approximation.SkewedChi2Sampler.fit(X, y=None)
Fit the model with X.
classsklearn.kernel_ridge.KernelRidge
Kernel ridge regression.
classsklearn.linear_model._base.LinearClassifierMixin
Mixin for linear classifiers.
classsklearn.linear_model._base.LinearModel
Base class for Linear Models
methodsklearn.linear_model._base.LinearModel.fit(X, y)
Fit model.
methodsklearn.linear_model._base.LinearModel.predict(X)
Predict using the linear model.
classsklearn.linear_model._base.LinearRegression
Ordinary least squares Linear Regression.
methodsklearn.linear_model._base.LinearRegression.fit(X, y, sample_weight=None)
Fit linear model.
classsklearn.linear_model._base.SparseCoefMixin
Mixin for converting coef_ to and from CSR format.
classsklearn.linear_model._bayes.ARDRegression
Bayesian ARD regression.
classsklearn.linear_model._bayes.BayesianRidge
Bayesian ridge regression.
methodsklearn.linear_model._bayes.BayesianRidge.fit(X, y, sample_weight=None)
Fit the model.
classsklearn.linear_model._glm._newton_solver.NewtonCholeskySolver
Cholesky based Newton solver.
classsklearn.linear_model._glm._newton_solver.NewtonSolver
Newton solver for GLMs.
methodsklearn.linear_model._glm._newton_solver.NewtonSolver.inner_solve(X, y, sample_weight)
Compute Newton step.
classsklearn.linear_model._glm.glm.GammaRegressor
Generalized Linear Model with a Gamma distribution.
classsklearn.linear_model._glm.glm.PoissonRegressor
Generalized Linear Model with a Poisson distribution.
classsklearn.linear_model._glm.glm.TweedieRegressor
Generalized Linear Model with a Tweedie distribution.
classsklearn.linear_model._least_angle.Lars
Least Angle Regression model aka LAR.
classsklearn.linear_model._least_angle.LarsCV
Cross-validated Least Angle Regression model.
classsklearn.linear_model._least_angle.LassoLars
Lasso model fit with Least Angle Regression aka Lars.
classsklearn.linear_model._least_angle.LassoLarsCV
Cross-validated Lasso, using the LARS algorithm.
classsklearn.linear_model._logistic.LogisticRegression
Logistic Regression (aka logit, MaxEnt) classifier.
methodsklearn.linear_model._logistic.LogisticRegression.predict_proba(X)
Probability estimates.
classsklearn.linear_model._omp.OrthogonalMatchingPursuit
Orthogonal Matching Pursuit model (OMP).
classsklearn.linear_model._passive_aggressive.PassiveAggressiveClassifier
Passive Aggressive Classifier.
classsklearn.linear_model._passive_aggressive.PassiveAggressiveRegressor
Passive Aggressive Regressor.
classsklearn.linear_model._perceptron.Perceptron
Linear perceptron classifier.
classsklearn.linear_model._ransac.RANSACRegressor
RANSAC (RANdom SAmple Consensus) algorithm.
classsklearn.linear_model._ridge.Ridge
Linear least squares with l2 regularization.
methodsklearn.linear_model._ridge.Ridge.fit(X, y, sample_weight=None)
Fit Ridge regression model.
methodsklearn.linear_model._ridge.Ridge.predict(X)
Predict using the linear model.
classsklearn.linear_model._ridge.RidgeCV
Ridge regression with built-in cross-validation.
methodsklearn.linear_model._ridge.RidgeCV.predict(X)
Predict using the linear model.
classsklearn.linear_model._ridge.RidgeClassifier
Classifier using Ridge regression.
methodsklearn.linear_model._ridge.RidgeClassifier.fit(X, y, sample_weight=None)
Fit Ridge classifier model.
classsklearn.linear_model._ridge.RidgeClassifierCV
Ridge classifier with built-in cross-validation.
classsklearn.linear_model._stochastic_gradient.BaseSGD
Base class for SGD classification and regression.
methodsklearn.linear_model._stochastic_gradient.BaseSGD.fit(X, y)
Fit model.
classsklearn.manifold._classical_mds.ClassicalMDS
Classical multidimensional scaling (MDS).
classsklearn.manifold._isomap.Isomap
Isomap Embedding.
methodsklearn.manifold._isomap.Isomap.transform(X)
Transform X.
classsklearn.manifold._locally_linear.LocallyLinearEmbedding
Locally Linear Embedding.
classsklearn.manifold._mds.MDS
Multidimensional scaling.
classsklearn.manifold._t_sne.TSNE
T-distributed Stochastic Neighbor Embedding.
methodsklearn.manifold._t_sne.TSNE.fit(X, y=None)
Fit X into an embedded space.
classsklearn.metrics._plot.confusion_matrix.ConfusionMatrixDisplay
Confusion Matrix visualization.
classsklearn.metrics._plot.det_curve.DetCurveDisplay
Detection Error Tradeoff (DET) curve visualization.
methodsklearn.metrics._plot.det_curve.DetCurveDisplay.plot(ax=None, *name=None, *curve_kwargs=None, **kwargs)
Plot visualization.
classsklearn.metrics._plot.precision_recall_curve.PrecisionRecallDisplay
Precision Recall visualization.
classsklearn.metrics._plot.roc_curve.RocCurveDisplay
ROC Curve visualization.
funcsklearn.metrics._ranking.coverage_error(y_true, y_score, *sample_weight=None)
Coverage error measure.
funcsklearn.metrics._scorer.get_scorer(scoring)
Get a scorer from string.
funcsklearn.metrics.cluster._supervised.rand_score(labels_true, labels_pred)
Rand index.
funcsklearn.metrics.pairwise.kernel_metrics()
Valid metrics for pairwise_kernels.
classsklearn.mixture._base.BaseMixture
Base class for mixture models.
classsklearn.mixture._gaussian_mixture.GaussianMixture
Gaussian Mixture.
classsklearn.model_selection._plot.LearningCurveDisplay
Learning Curve visualization.
classsklearn.model_selection._plot.ValidationCurveDisplay
Validation Curve visualization.
classsklearn.model_selection._search.RandomizedSearchCV
Randomized search on hyper parameters.
classsklearn.model_selection._search_successive_halving.BaseSuccessiveHalving
Implements successive halving.
classsklearn.model_selection._search_successive_halving.HalvingRandomSearchCV
Randomized search on hyper parameters.
classsklearn.model_selection._split.BaseCrossValidator
Base class for all cross-validators.
classsklearn.model_selection._split.BaseShuffleSplit
Base class for *ShuffleSplit.
classsklearn.model_selection._split.GroupKFold
K-fold iterator variant with non-overlapping groups.
classsklearn.model_selection._split.GroupShuffleSplit
Shuffle-Group(s)-Out cross-validation iterator.
classsklearn.model_selection._split.GroupsConsumerMixin
A Mixin to ``groups`` by default.
classsklearn.model_selection._split.KFold
K-Fold cross-validator.
classsklearn.model_selection._split.LeaveOneGroupOut
Leave One Group Out cross-validator.
classsklearn.model_selection._split.LeaveOneOut
Leave-One-Out cross-validator.
classsklearn.model_selection._split.LeavePGroupsOut
Leave P Group(s) Out cross-validator.
classsklearn.model_selection._split.LeavePOut
Leave-P-Out cross-validator.
classsklearn.model_selection._split.PredefinedSplit
Predefined split cross-validator.
classsklearn.model_selection._split.RepeatedKFold
Repeated K-Fold cross validator.
classsklearn.model_selection._split.ShuffleSplit
Random permutation cross-validator.
classsklearn.model_selection._split.StratifiedKFold
Class-wise stratified K-Fold cross-validator.
classsklearn.model_selection._split.StratifiedShuffleSplit
Class-wise stratified ShuffleSplit cross-validator.
classsklearn.model_selection._split.TimeSeriesSplit
Time Series cross-validator.
classsklearn.multiclass.OneVsOneClassifier
One-vs-one multiclass strategy.
methodsklearn.multiclass.OneVsOneClassifier.fit(X, y, **fit_params)
Fit underlying estimators.
methodsklearn.multiclass.OneVsOneClassifier.n_classes_()
Number of classes.
classsklearn.multiclass.OneVsRestClassifier
One-vs-the-rest (OvR) multiclass strategy.
methodsklearn.multiclass.OneVsRestClassifier.fit(X, y, **fit_params)
Fit underlying estimators.
methodsklearn.multiclass.OneVsRestClassifier.n_classes_()
Number of classes.
methodsklearn.multiclass.OneVsRestClassifier.predict_proba(X)
Probability estimates.
classsklearn.multiclass.OutputCodeClassifier
(Error-Correcting) Output-Code multiclass strategy.
methodsklearn.multiclass.OutputCodeClassifier.fit(X, y, **fit_params)
Fit underlying estimators.
classsklearn.multioutput.MultiOutputClassifier
Multi target classification.
classsklearn.multioutput.MultiOutputRegressor
Multi target regression.
classsklearn.naive_bayes.BernoulliNB
Naive Bayes classifier for multivariate Bernoulli models.
classsklearn.naive_bayes.CategoricalNB
Naive Bayes classifier for categorical features.
classsklearn.naive_bayes.GaussianNB
Gaussian Naive Bayes (GaussianNB).
classsklearn.naive_bayes.MultinomialNB
Naive Bayes classifier for multinomial models.
classsklearn.neighbors._base.KNeighborsMixin
Mixin for k-neighbors searches.
classsklearn.neighbors._base.NeighborsBase
Base class for nearest neighbors estimators.
classsklearn.neighbors._base.RadiusNeighborsMixin
Mixin for radius-based neighbors searches.
classsklearn.neighbors._kde.KernelDensity
Kernel Density Estimation.
classsklearn.neighbors._nca.NeighborhoodComponentsAnalysis
Neighborhood Components Analysis.
classsklearn.neighbors._nearest_centroid.NearestCentroid
Nearest centroid classifier.
classsklearn.neighbors._regression.KNeighborsRegressor
Regression based on k-nearest neighbors.
classsklearn.neighbors._unsupervised.NearestNeighbors
Unsupervised learner for implementing neighbor searches.
funcsklearn.neural_network._base.inplace_exp(X)
Compute the exponential inplace.
classsklearn.neural_network._multilayer_perceptron.MLPClassifier
Multi-layer Perceptron classifier.
methodsklearn.neural_network._multilayer_perceptron.MLPClassifier.predict_proba(X)
Probability estimates.
classsklearn.neural_network._multilayer_perceptron.MLPRegressor
Multi-layer Perceptron regressor.
classsklearn.neural_network._rbm.BernoulliRBM
Bernoulli Restricted Boltzmann Machine (RBM).
methodsklearn.neural_network._rbm.BernoulliRBM.fit(X, y=None)
Fit the model to the data X.
methodsklearn.neural_network._rbm.BernoulliRBM.gibbs(v)
Perform one Gibbs sampling step.
classsklearn.pipeline.FeatureUnion
Concatenates results of multiple transformer objects.
methodsklearn.pipeline.FeatureUnion.fit(X, y=None, **fit_params)
Fit all transformers using X.
methodsklearn.pipeline.Pipeline.classes_()
The classes labels.
methodsklearn.pipeline.Pipeline.fit(X, y=None, **params)
Fit the model.
methodsklearn.pipeline.Pipeline.get_params(deep=True)
Get parameters for this estimator.
methodsklearn.pipeline.Pipeline.named_steps()
Access the steps by name.
methodsklearn.preprocessing._data.Binarizer.transform(X, copy=None)
Binarize each element of X.
classsklearn.preprocessing._data.KernelCenterer
Center an arbitrary kernel matrix :math:`K`.
methodsklearn.preprocessing._data.KernelCenterer.fit(K, y=None)
Fit KernelCenterer.
methodsklearn.preprocessing._data.KernelCenterer.transform(K, copy=True)
Center kernel matrix.
classsklearn.preprocessing._data.MaxAbsScaler
Scale each feature by its maximum absolute value.
methodsklearn.preprocessing._data.MaxAbsScaler.transform(X)
Scale the data.
classsklearn.preprocessing._data.Normalizer
Normalize samples individually to unit norm.
classsklearn.preprocessing._data.QuantileTransformer
Transform features using quantiles information.
classsklearn.preprocessing._discretization.KBinsDiscretizer
Bin continuous data into intervals.
methodsklearn.preprocessing._discretization.KBinsDiscretizer.fit(X, y=None, sample_weight=None)
Fit the estimator.
methodsklearn.preprocessing._discretization.KBinsDiscretizer.transform(X)
Discretize the data.
classsklearn.preprocessing._encoders.OneHotEncoder
Encode categorical features as a one-hot numeric array.
methodsklearn.preprocessing._encoders.OneHotEncoder.fit(X, y=None)
Fit OneHotEncoder to X.
classsklearn.preprocessing._encoders.OrdinalEncoder
Encode categorical features as an integer array.
methodsklearn.preprocessing._encoders.OrdinalEncoder.fit(X, y=None)
Fit the OrdinalEncoder to X.
methodsklearn.preprocessing._encoders.OrdinalEncoder.transform(X)
Transform X to ordinal codes.
classsklearn.preprocessing._label.LabelBinarizer
Binarize labels in a one-vs-all fashion.
methodsklearn.preprocessing._label.LabelBinarizer.fit(y)
Fit label binarizer.
classsklearn.preprocessing._label.LabelEncoder
Encode target labels with value between 0 and n_classes-1.
methodsklearn.preprocessing._label.LabelEncoder.fit(y)
Fit label encoder.
classsklearn.preprocessing._polynomial.PolynomialFeatures
Generate polynomial and interaction features.
classsklearn.preprocessing._polynomial.SplineTransformer
Generate univariate B-spline bases for features.
classsklearn.random_projection.BaseRandomProjection
Base class for random projections.
classsklearn.semi_supervised._label_propagation.BaseLabelPropagation
Base class for label propagation module.
classsklearn.semi_supervised._label_propagation.LabelPropagation
Label Propagation classifier.
classsklearn.semi_supervised._self_training.SelfTrainingClassifier
Self-training classifier.
classsklearn.svm._base.BaseLibSVM
Base class for estimators that use libsvm as backing library.
methodsklearn.svm._base.BaseLibSVM.predict(X)
Perform regression on samples in X.
classsklearn.svm._base.BaseSVC
ABC for LibSVM-based classifiers.
classsklearn.svm._classes.LinearSVC
Linear Support Vector Classification.
classsklearn.svm._classes.LinearSVR
Linear Support Vector Regression.
classsklearn.svm._classes.NuSVC
Nu-Support Vector Classification.
classsklearn.svm._classes.NuSVR
Nu Support Vector Regression.
classsklearn.svm._classes.OneClassSVM
Unsupervised Outlier Detection.
classsklearn.svm._classes.SVC
C-Support Vector Classification.
classsklearn.svm._classes.SVR
Epsilon-Support Vector Regression.
classsklearn.tree._classes.BaseDecisionTree
Base class for decision trees.
classsklearn.tree._classes.DecisionTreeClassifier
A decision tree classifier.
classsklearn.tree._classes.DecisionTreeRegressor
A decision tree regressor.
classsklearn.tree._classes.ExtraTreeClassifier
An extremely randomized tree classifier.
classsklearn.tree._classes.ExtraTreeRegressor
An extremely randomized tree regressor.
funcsklearn.utils._array_api.get_namespace(*remove_none=True, *remove_types=REMOVE_TYPES_DEFAULT, *xp=None, *arrays)
Get namespace of arrays.
funcsklearn.utils._array_api.move_to(*xp, *device, *arrays)
Move all arrays to `xp` and `device`.
funcsklearn.utils._array_api.yield_namespaces(include_numpy_namespaces=True)
Yield supported namespace.
classsklearn.utils._bunch.Bunch
Container object exposing keys as attributes.
classsklearn.utils._encode.MissingValues
Data class for missing data information
classsklearn.utils._metadata_requests.MetadataRouter
Coordinates metadata routing for a :term:`router` object.
funcsklearn.utils._metadata_requests._MetadataRequester.is_RequestMethod(obj, name:str)
Check if obj.name is a RequestMethod
funcsklearn.utils._metadata_requests.process_routing(_obj, _method, **kwargs)
Validate and route metadata.
funcsklearn.utils._missing.is_pandas_na(x)
Test if x is pandas.NA.
funcsklearn.utils._missing.is_scalar_nan(x)
Test if x is NaN.
classsklearn.utils._mocking.ArraySlicingWrapper
Parameters ---------- array
methodsklearn.utils._mocking.CheckingClassifier.decision_function(X)
Confidence score.
methodsklearn.utils._mocking.CheckingClassifier.fit(X, y, sample_weight=None, **fit_params)
Fit classifier.
methodsklearn.utils._mocking.CheckingClassifier.score(X=None, Y=None)
Fake score.
classsklearn.utils._mocking.MockDataFrame
Parameters ---------- array
classsklearn.utils._mocking.NoSampleWeightWrapper
Wrap estimator which will not expose `sample_weight`.
classsklearn.utils._param_validation.Interval
Constraint representing a typed interval.
classsklearn.utils._param_validation.StrOptions
Constraint representing a finite set of strings.
classsklearn.utils._repr_html.base.ReprHTMLMixin
Mixin to handle consistently the HTML representation.
funcsklearn.utils._set_output.check_library_installed(library)
Check library is installed.
classsklearn.utils._tags.ClassifierTags
Tags for the classifier.
classsklearn.utils._tags.InputTags
Tags for the input data.
classsklearn.utils._tags.RegressorTags
Tags for the regressor.
classsklearn.utils._tags.Tags
Tags for the estimator.
classsklearn.utils._tags.TargetTags
Tags for the target data.
classsklearn.utils._tags.TransformerTags
Tags for the transformer.
funcsklearn.utils._tags.get_tags(estimator) -> Tags
Get estimator tags.
funcsklearn.utils._unique.cached_unique(*xp=None, *ys)
Return the unique values of ys.
classsklearn.utils.deprecation.deprecated
Decorator to mark a function or class as deprecated.
funcsklearn.utils.extmath.density(w)
Compute density of a sparse vector.
funcsklearn.utils.extmath.make_nonnegative(X, min_value=0)
Ensure `X.min()` >= `min_value`.
funcsklearn.utils.extmath.row_norms(X, squared=False)
Row-wise (squared) Euclidean norm of X.
funcsklearn.utils.extmath.softmax(X, copy=True)
Calculate the softmax function.
funcsklearn.utils.validation.check_is_fitted(estimator, attributes=None, *msg=None, *all_or_any=all)
Perform is_fitted validation for estimator.

About this data

These signatures were extracted from the public source of scikit-learn/scikit-learn using Python's ast module. Argument names, default values, type annotations and return types are taken verbatim from the code. Implementation bodies are never stored. See how it works for details.

Back to all 805 libraries