2018-01-02 17:14:07 +08:00
|
|
|
.. _api_ref:
|
|
|
|
|
|
2015-04-16 07:19:06 +08:00
|
|
|
=============
|
|
|
|
|
API Reference
|
|
|
|
|
=============
|
2010-09-01 20:46:46 +08:00
|
|
|
|
2011-11-30 01:32:05 +08:00
|
|
|
This is the class and function reference of scikit-learn. Please refer to
|
2011-11-29 23:29:49 +08:00
|
|
|
the :ref:`full user guide <user_guide>` for further details, as the class and
|
|
|
|
|
function raw specifications may not be enough to give full guidelines on their
|
|
|
|
|
uses.
|
2018-01-02 17:14:07 +08:00
|
|
|
For reference on concepts repeated across the API, see :ref:`glossary`.
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2013-07-23 22:53:23 +08:00
|
|
|
|
2013-12-05 20:01:02 +08:00
|
|
|
:mod:`sklearn.base`: Base classes and utility functions
|
|
|
|
|
=======================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.base
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
Base classes
|
|
|
|
|
------------
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
2020-09-07 16:44:56 +08:00
|
|
|
:nosignatures:
|
2013-12-05 20:01:02 +08:00
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
base.BaseEstimator
|
2017-10-19 15:28:58 +08:00
|
|
|
base.BiclusterMixin
|
2013-12-05 20:01:02 +08:00
|
|
|
base.ClassifierMixin
|
|
|
|
|
base.ClusterMixin
|
2017-10-19 15:28:58 +08:00
|
|
|
base.DensityMixin
|
2013-12-05 20:01:02 +08:00
|
|
|
base.RegressorMixin
|
|
|
|
|
base.TransformerMixin
|
2020-01-17 22:37:26 +08:00
|
|
|
feature_selection.SelectorMixin
|
2013-12-05 20:01:02 +08:00
|
|
|
|
|
|
|
|
Functions
|
|
|
|
|
---------
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
base.clone
|
2017-11-03 05:31:46 +08:00
|
|
|
base.is_classifier
|
|
|
|
|
base.is_regressor
|
2017-06-08 19:42:17 +08:00
|
|
|
config_context
|
|
|
|
|
get_config
|
2017-07-27 19:16:01 +08:00
|
|
|
set_config
|
2018-08-01 07:12:51 +08:00
|
|
|
show_versions
|
2017-07-27 19:16:01 +08:00
|
|
|
|
|
|
|
|
.. _calibration_ref:
|
2013-12-05 20:01:02 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
:mod:`sklearn.calibration`: Probability Calibration
|
|
|
|
|
===================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.calibration
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`calibration` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
calibration.CalibratedClassifierCV
|
2013-12-05 20:01:02 +08:00
|
|
|
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
calibration.calibration_curve
|
2013-12-05 20:01:02 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _cluster_ref:
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.cluster`: Clustering
|
|
|
|
|
==================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.cluster
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2019-10-19 02:01:14 +08:00
|
|
|
**User guide:** See the :ref:`clustering` and :ref:`biclustering` sections for
|
|
|
|
|
further details.
|
2011-12-03 19:56:12 +08:00
|
|
|
|
2012-03-22 03:53:11 +08:00
|
|
|
Classes
|
|
|
|
|
-------
|
2011-11-29 23:29:49 +08:00
|
|
|
.. currentmodule:: sklearn
|
2010-08-30 20:12:55 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
2012-03-13 05:19:20 +08:00
|
|
|
|
2011-12-21 19:55:27 +08:00
|
|
|
cluster.AffinityPropagation
|
2014-02-07 01:22:55 +08:00
|
|
|
cluster.AgglomerativeClustering
|
2014-11-11 01:40:12 +08:00
|
|
|
cluster.Birch
|
2011-12-21 19:55:27 +08:00
|
|
|
cluster.DBSCAN
|
2014-02-13 07:55:46 +08:00
|
|
|
cluster.FeatureAgglomeration
|
2011-11-29 23:29:49 +08:00
|
|
|
cluster.KMeans
|
|
|
|
|
cluster.MiniBatchKMeans
|
|
|
|
|
cluster.MeanShift
|
2019-08-09 17:31:45 +08:00
|
|
|
cluster.OPTICS
|
2011-11-29 23:29:49 +08:00
|
|
|
cluster.SpectralClustering
|
2019-10-19 02:01:14 +08:00
|
|
|
cluster.SpectralBiclustering
|
|
|
|
|
cluster.SpectralCoclustering
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2012-03-22 03:53:11 +08:00
|
|
|
Functions
|
|
|
|
|
---------
|
2012-03-05 03:38:15 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2012-03-22 03:53:11 +08:00
|
|
|
cluster.affinity_propagation
|
2019-03-04 20:34:47 +08:00
|
|
|
cluster.cluster_optics_dbscan
|
2019-04-27 22:11:04 +08:00
|
|
|
cluster.cluster_optics_xi
|
2019-03-04 20:34:47 +08:00
|
|
|
cluster.compute_optics_graph
|
2012-03-22 03:53:11 +08:00
|
|
|
cluster.dbscan
|
2017-07-27 19:16:01 +08:00
|
|
|
cluster.estimate_bandwidth
|
|
|
|
|
cluster.k_means
|
2020-11-11 22:24:03 +08:00
|
|
|
cluster.kmeans_plusplus
|
2012-03-22 03:53:11 +08:00
|
|
|
cluster.mean_shift
|
|
|
|
|
cluster.spectral_clustering
|
2017-07-27 19:16:01 +08:00
|
|
|
cluster.ward_tree
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2018-03-16 21:27:03 +08:00
|
|
|
.. _compose_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.compose`: Composite Estimators
|
|
|
|
|
============================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.compose
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`combining_estimators` section for further
|
|
|
|
|
details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2018-05-30 05:49:21 +08:00
|
|
|
compose.ColumnTransformer
|
2018-03-16 21:27:03 +08:00
|
|
|
compose.TransformedTargetRegressor
|
|
|
|
|
|
2018-05-30 05:49:21 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
compose.make_column_transformer
|
2019-11-05 22:22:26 +08:00
|
|
|
compose.make_column_selector
|
2018-05-30 05:49:21 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _covariance_ref:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.covariance`: Covariance Estimators
|
|
|
|
|
================================================
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.covariance
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`covariance` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2010-08-30 20:12:55 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2010-09-01 22:05:51 +08:00
|
|
|
:template: class.rst
|
2010-08-30 20:12:55 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
covariance.EmpiricalCovariance
|
2012-03-31 22:46:26 +08:00
|
|
|
covariance.EllipticEnvelope
|
2018-02-20 08:59:52 +08:00
|
|
|
covariance.GraphicalLasso
|
|
|
|
|
covariance.GraphicalLassoCV
|
2012-03-23 18:51:16 +08:00
|
|
|
covariance.LedoitWolf
|
2011-11-07 07:21:24 +08:00
|
|
|
covariance.MinCovDet
|
2012-03-23 18:51:16 +08:00
|
|
|
covariance.OAS
|
|
|
|
|
covariance.ShrunkCovariance
|
2010-09-11 19:27:41 +08:00
|
|
|
|
2011-04-26 16:30:52 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
covariance.empirical_covariance
|
2018-02-20 08:59:52 +08:00
|
|
|
covariance.graphical_lasso
|
2011-11-29 23:29:49 +08:00
|
|
|
covariance.ledoit_wolf
|
|
|
|
|
covariance.oas
|
2017-07-27 19:16:01 +08:00
|
|
|
covariance.shrunk_covariance
|
2011-04-26 16:30:52 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
.. _cross_decomposition_ref:
|
2011-04-26 16:30:52 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
:mod:`sklearn.cross_decomposition`: Cross decomposition
|
|
|
|
|
=======================================================
|
2010-09-01 20:46:46 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
.. automodule:: sklearn.cross_decomposition
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
**User guide:** See the :ref:`cross_decomposition` section for further details.
|
2011-12-03 19:56:12 +08:00
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-09-11 19:27:41 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2010-09-28 20:43:56 +08:00
|
|
|
:template: class.rst
|
2010-09-11 19:27:41 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
cross_decomposition.CCA
|
|
|
|
|
cross_decomposition.PLSCanonical
|
|
|
|
|
cross_decomposition.PLSRegression
|
|
|
|
|
cross_decomposition.PLSSVD
|
2010-09-02 20:18:30 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _datasets_ref:
|
2011-04-27 21:18:25 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.datasets`: Datasets
|
|
|
|
|
=================================
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.datasets
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`datasets` section for further details.
|
|
|
|
|
|
2011-11-30 17:30:13 +08:00
|
|
|
Loaders
|
|
|
|
|
-------
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2014-10-24 20:42:09 +08:00
|
|
|
datasets.clear_data_home
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.dump_svmlight_file
|
2012-01-14 18:33:44 +08:00
|
|
|
datasets.fetch_20newsgroups
|
|
|
|
|
datasets.fetch_20newsgroups_vectorized
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.fetch_california_housing
|
|
|
|
|
datasets.fetch_covtype
|
|
|
|
|
datasets.fetch_kddcup99
|
|
|
|
|
datasets.fetch_lfw_pairs
|
|
|
|
|
datasets.fetch_lfw_people
|
|
|
|
|
datasets.fetch_olivetti_faces
|
2018-08-15 15:21:20 +08:00
|
|
|
datasets.fetch_openml
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.fetch_rcv1
|
|
|
|
|
datasets.fetch_species_distributions
|
|
|
|
|
datasets.get_data_home
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.load_boston
|
2016-08-06 01:35:28 +08:00
|
|
|
datasets.load_breast_cancer
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.load_diabetes
|
|
|
|
|
datasets.load_digits
|
2012-01-14 18:33:44 +08:00
|
|
|
datasets.load_files
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.load_iris
|
2012-01-14 18:33:44 +08:00
|
|
|
datasets.load_linnerud
|
|
|
|
|
datasets.load_sample_image
|
|
|
|
|
datasets.load_sample_images
|
2012-02-15 03:34:09 +08:00
|
|
|
datasets.load_svmlight_file
|
2014-11-28 19:08:29 +08:00
|
|
|
datasets.load_svmlight_files
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.load_wine
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
Samples generator
|
2011-04-27 21:18:25 +08:00
|
|
|
-----------------
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
2011-04-27 21:18:25 +08:00
|
|
|
.. autosummary::
|
2011-11-29 23:29:49 +08:00
|
|
|
:toctree: generated/
|
2011-04-27 21:18:25 +08:00
|
|
|
:template: function.rst
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.make_biclusters
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.make_blobs
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.make_checkerboard
|
2012-03-04 21:55:59 +08:00
|
|
|
datasets.make_circles
|
2017-07-27 19:16:01 +08:00
|
|
|
datasets.make_classification
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.make_friedman1
|
|
|
|
|
datasets.make_friedman2
|
|
|
|
|
datasets.make_friedman3
|
2013-07-25 20:33:12 +08:00
|
|
|
datasets.make_gaussian_quantiles
|
2012-03-31 22:40:31 +08:00
|
|
|
datasets.make_hastie_10_2
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.make_low_rank_matrix
|
2012-03-04 21:55:59 +08:00
|
|
|
datasets.make_moons
|
2012-01-14 18:33:44 +08:00
|
|
|
datasets.make_multilabel_classification
|
|
|
|
|
datasets.make_regression
|
|
|
|
|
datasets.make_s_curve
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.make_sparse_coded_signal
|
2012-01-14 18:33:44 +08:00
|
|
|
datasets.make_sparse_spd_matrix
|
2011-11-29 23:29:49 +08:00
|
|
|
datasets.make_sparse_uncorrelated
|
|
|
|
|
datasets.make_spd_matrix
|
|
|
|
|
datasets.make_swiss_roll
|
2011-04-27 21:18:25 +08:00
|
|
|
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _decomposition_ref:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.decomposition`: Matrix Decomposition
|
|
|
|
|
==================================================
|
2011-08-11 18:17:14 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.decomposition
|
2011-08-11 18:17:14 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`decompositions` section for further details.
|
|
|
|
|
|
2011-09-04 02:54:12 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-08-11 18:17:14 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
decomposition.DictionaryLearning
|
2012-10-14 01:34:12 +08:00
|
|
|
decomposition.FactorAnalysis
|
2011-11-29 23:29:49 +08:00
|
|
|
decomposition.FastICA
|
2017-07-27 19:16:01 +08:00
|
|
|
decomposition.IncrementalPCA
|
|
|
|
|
decomposition.KernelPCA
|
|
|
|
|
decomposition.LatentDirichletAllocation
|
|
|
|
|
decomposition.MiniBatchDictionaryLearning
|
|
|
|
|
decomposition.MiniBatchSparsePCA
|
2011-11-29 23:29:49 +08:00
|
|
|
decomposition.NMF
|
2017-07-27 19:16:01 +08:00
|
|
|
decomposition.PCA
|
2011-11-29 23:29:49 +08:00
|
|
|
decomposition.SparsePCA
|
2011-12-08 02:24:37 +08:00
|
|
|
decomposition.SparseCoder
|
2017-07-27 19:16:01 +08:00
|
|
|
decomposition.TruncatedSVD
|
2011-08-11 18:17:14 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
decomposition.dict_learning
|
|
|
|
|
decomposition.dict_learning_online
|
2017-07-27 19:16:01 +08:00
|
|
|
decomposition.fastica
|
2019-05-10 06:52:37 +08:00
|
|
|
decomposition.non_negative_factorization
|
2011-11-29 23:29:49 +08:00
|
|
|
decomposition.sparse_encode
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
.. _lda_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.discriminant_analysis`: Discriminant Analysis
|
|
|
|
|
===========================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.discriminant_analysis
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`lda_qda` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
discriminant_analysis.LinearDiscriminantAnalysis
|
|
|
|
|
discriminant_analysis.QuadraticDiscriminantAnalysis
|
|
|
|
|
|
2012-11-19 22:02:48 +08:00
|
|
|
.. _dummy_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.dummy`: Dummy estimators
|
|
|
|
|
======================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.dummy
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`model_evaluation` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
dummy.DummyClassifier
|
|
|
|
|
dummy.DummyRegressor
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. _ensemble_ref:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.ensemble`: Ensemble Methods
|
|
|
|
|
=========================================
|
2011-11-18 21:29:19 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.ensemble
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`ensemble` section for further details.
|
|
|
|
|
|
2011-11-18 21:29:19 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2012-12-18 23:19:49 +08:00
|
|
|
ensemble.AdaBoostClassifier
|
|
|
|
|
ensemble.AdaBoostRegressor
|
2013-07-23 18:59:32 +08:00
|
|
|
ensemble.BaggingClassifier
|
|
|
|
|
ensemble.BaggingRegressor
|
|
|
|
|
ensemble.ExtraTreesClassifier
|
|
|
|
|
ensemble.ExtraTreesRegressor
|
2012-03-13 05:19:20 +08:00
|
|
|
ensemble.GradientBoostingClassifier
|
|
|
|
|
ensemble.GradientBoostingRegressor
|
2015-01-26 23:05:27 +08:00
|
|
|
ensemble.IsolationForest
|
2013-07-23 18:59:32 +08:00
|
|
|
ensemble.RandomForestClassifier
|
|
|
|
|
ensemble.RandomForestRegressor
|
2017-07-27 19:16:01 +08:00
|
|
|
ensemble.RandomTreesEmbedding
|
2019-09-19 04:06:33 +08:00
|
|
|
ensemble.StackingClassifier
|
|
|
|
|
ensemble.StackingRegressor
|
2015-05-27 20:37:42 +08:00
|
|
|
ensemble.VotingClassifier
|
2019-04-10 19:27:17 +08:00
|
|
|
ensemble.VotingRegressor
|
2019-04-27 03:14:59 +08:00
|
|
|
ensemble.HistGradientBoostingRegressor
|
|
|
|
|
ensemble.HistGradientBoostingClassifier
|
|
|
|
|
|
2011-11-18 21:29:19 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2011-08-11 18:17:14 +08:00
|
|
|
|
2015-06-06 02:45:45 +08:00
|
|
|
.. _exceptions_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.exceptions`: Exceptions and warnings
|
|
|
|
|
==================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.exceptions
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2020-05-18 18:40:51 +08:00
|
|
|
:template: class.rst
|
2015-06-06 02:45:45 +08:00
|
|
|
|
|
|
|
|
exceptions.ConvergenceWarning
|
|
|
|
|
exceptions.DataConversionWarning
|
|
|
|
|
exceptions.DataDimensionalityWarning
|
|
|
|
|
exceptions.EfficiencyWarning
|
|
|
|
|
exceptions.FitFailedWarning
|
2017-07-27 19:16:01 +08:00
|
|
|
exceptions.NotFittedError
|
2015-06-06 02:45:45 +08:00
|
|
|
exceptions.UndefinedMetricWarning
|
|
|
|
|
|
2019-04-27 03:14:59 +08:00
|
|
|
|
|
|
|
|
:mod:`sklearn.experimental`: Experimental
|
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.experimental
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
|
|
|
|
|
experimental.enable_hist_gradient_boosting
|
2019-05-09 07:28:44 +08:00
|
|
|
experimental.enable_iterative_imputer
|
2020-10-09 04:49:20 +08:00
|
|
|
experimental.enable_halving_search_cv
|
2019-04-27 03:14:59 +08:00
|
|
|
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _feature_extraction_ref:
|
2010-10-07 15:42:52 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.feature_extraction`: Feature Extraction
|
|
|
|
|
=====================================================
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.feature_extraction
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`feature_extraction` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2012-03-17 08:49:18 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
feature_extraction.DictVectorizer
|
2012-09-05 04:01:20 +08:00
|
|
|
feature_extraction.FeatureHasher
|
2012-03-17 08:49:18 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
From images
|
|
|
|
|
-----------
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.feature_extraction.image
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-09-28 20:43:56 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2011-11-29 23:29:49 +08:00
|
|
|
:template: function.rst
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
feature_extraction.image.extract_patches_2d
|
2017-07-27 19:16:01 +08:00
|
|
|
feature_extraction.image.grid_to_graph
|
|
|
|
|
feature_extraction.image.img_to_graph
|
2011-11-29 23:29:49 +08:00
|
|
|
feature_extraction.image.reconstruct_from_patches_2d
|
2011-05-12 00:20:43 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
:template: class.rst
|
2011-05-12 00:20:43 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
feature_extraction.image.PatchExtractor
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2012-03-05 01:56:03 +08:00
|
|
|
.. _text_feature_extraction_ref:
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
From text
|
|
|
|
|
---------
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.feature_extraction.text
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-09-28 20:43:56 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
feature_extraction.text.CountVectorizer
|
2012-12-23 21:43:48 +08:00
|
|
|
feature_extraction.text.HashingVectorizer
|
2011-11-29 23:29:49 +08:00
|
|
|
feature_extraction.text.TfidfTransformer
|
2012-03-07 22:48:56 +08:00
|
|
|
feature_extraction.text.TfidfVectorizer
|
2010-10-01 21:06:45 +08:00
|
|
|
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2011-11-30 17:30:13 +08:00
|
|
|
.. _feature_selection_ref:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.feature_selection`: Feature Selection
|
|
|
|
|
===================================================
|
2011-11-30 17:30:13 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.feature_selection
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`feature_selection` section for further details.
|
|
|
|
|
|
2011-11-30 17:30:13 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2014-04-25 04:26:41 +08:00
|
|
|
feature_selection.GenericUnivariateSelect
|
2011-11-30 17:30:13 +08:00
|
|
|
feature_selection.SelectPercentile
|
|
|
|
|
feature_selection.SelectKBest
|
|
|
|
|
feature_selection.SelectFpr
|
|
|
|
|
feature_selection.SelectFdr
|
2015-09-23 05:05:16 +08:00
|
|
|
feature_selection.SelectFromModel
|
2011-11-30 17:30:13 +08:00
|
|
|
feature_selection.SelectFwe
|
2020-08-22 01:57:05 +08:00
|
|
|
feature_selection.SequentialFeatureSelector
|
2011-11-30 17:30:13 +08:00
|
|
|
feature_selection.RFE
|
|
|
|
|
feature_selection.RFECV
|
2014-07-15 00:04:22 +08:00
|
|
|
feature_selection.VarianceThreshold
|
2011-11-30 17:30:13 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
feature_selection.chi2
|
|
|
|
|
feature_selection.f_classif
|
|
|
|
|
feature_selection.f_regression
|
2021-04-21 16:49:18 +08:00
|
|
|
feature_selection.r_regression
|
2016-01-13 01:43:23 +08:00
|
|
|
feature_selection.mutual_info_classif
|
|
|
|
|
feature_selection.mutual_info_regression
|
2011-11-30 17:30:13 +08:00
|
|
|
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _gaussian_process_ref:
|
2011-02-21 22:41:36 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.gaussian_process`: Gaussian Processes
|
|
|
|
|
===================================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-10-13 18:41:54 +08:00
|
|
|
.. automodule:: sklearn.gaussian_process
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`gaussian_process` section for further details.
|
|
|
|
|
|
2011-10-13 18:41:54 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2015-04-08 17:28:51 +08:00
|
|
|
gaussian_process.GaussianProcessClassifier
|
2017-07-27 19:16:01 +08:00
|
|
|
gaussian_process.GaussianProcessRegressor
|
2015-04-08 17:28:51 +08:00
|
|
|
|
|
|
|
|
Kernels:
|
2011-10-13 18:41:54 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
2015-04-08 17:28:51 +08:00
|
|
|
:toctree: generated/
|
2016-11-11 01:18:19 +08:00
|
|
|
:template: class_with_call.rst
|
2011-10-13 18:41:54 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
gaussian_process.kernels.CompoundKernel
|
|
|
|
|
gaussian_process.kernels.ConstantKernel
|
|
|
|
|
gaussian_process.kernels.DotProduct
|
|
|
|
|
gaussian_process.kernels.ExpSineSquared
|
|
|
|
|
gaussian_process.kernels.Exponentiation
|
|
|
|
|
gaussian_process.kernels.Hyperparameter
|
2015-08-19 22:37:58 +08:00
|
|
|
gaussian_process.kernels.Kernel
|
2017-07-27 19:16:01 +08:00
|
|
|
gaussian_process.kernels.Matern
|
|
|
|
|
gaussian_process.kernels.PairwiseKernel
|
2015-04-08 17:28:51 +08:00
|
|
|
gaussian_process.kernels.Product
|
|
|
|
|
gaussian_process.kernels.RBF
|
|
|
|
|
gaussian_process.kernels.RationalQuadratic
|
2017-07-27 19:16:01 +08:00
|
|
|
gaussian_process.kernels.Sum
|
|
|
|
|
gaussian_process.kernels.WhiteKernel
|
2011-10-13 18:41:54 +08:00
|
|
|
|
2012-11-15 05:42:03 +08:00
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
.. _impute_ref:
|
2012-11-15 05:42:03 +08:00
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
:mod:`sklearn.impute`: Impute
|
|
|
|
|
=============================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.impute
|
2012-11-15 05:42:03 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
**User guide:** See the :ref:`Impute` section for further details.
|
2012-11-15 05:42:03 +08:00
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
impute.SimpleImputer
|
|
|
|
|
impute.IterativeImputer
|
|
|
|
|
impute.MissingIndicator
|
2019-09-04 07:08:59 +08:00
|
|
|
impute.KNNImputer
|
2019-07-05 17:04:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _inspection_ref:
|
|
|
|
|
|
2020-09-07 22:26:58 +08:00
|
|
|
:mod:`sklearn.inspection`: Inspection
|
2019-07-05 17:04:20 +08:00
|
|
|
=====================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.inspection
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
2012-11-15 05:42:03 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
2019-07-05 17:04:20 +08:00
|
|
|
:toctree: generated/
|
2012-11-15 05:42:03 +08:00
|
|
|
:template: function.rst
|
|
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
inspection.partial_dependence
|
2019-07-18 01:16:00 +08:00
|
|
|
inspection.permutation_importance
|
2014-05-24 20:55:21 +08:00
|
|
|
|
2019-08-08 09:37:29 +08:00
|
|
|
Plotting
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
2019-09-20 17:03:00 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2022-03-29 22:36:31 +08:00
|
|
|
inspection.DecisionBoundaryDisplay
|
2019-09-20 17:03:00 +08:00
|
|
|
inspection.PartialDependenceDisplay
|
|
|
|
|
|
2019-08-08 09:37:29 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
inspection.plot_partial_dependence
|
2018-02-15 03:47:06 +08:00
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
.. _isotonic_ref:
|
2018-02-15 03:47:06 +08:00
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
:mod:`sklearn.isotonic`: Isotonic regression
|
|
|
|
|
============================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.isotonic
|
2018-02-15 03:47:06 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
**User guide:** See the :ref:`isotonic` section for further details.
|
2018-02-15 03:47:06 +08:00
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2019-07-05 17:04:20 +08:00
|
|
|
isotonic.IsotonicRegression
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
isotonic.check_increasing
|
|
|
|
|
isotonic.isotonic_regression
|
|
|
|
|
|
|
|
|
|
|
2011-12-20 22:34:15 +08:00
|
|
|
.. _kernel_approximation_ref:
|
|
|
|
|
|
2020-09-07 22:26:58 +08:00
|
|
|
:mod:`sklearn.kernel_approximation`: Kernel Approximation
|
|
|
|
|
=========================================================
|
2011-12-20 22:34:15 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.kernel_approximation
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`kernel_approximation` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
kernel_approximation.AdditiveChi2Sampler
|
2012-12-27 05:55:48 +08:00
|
|
|
kernel_approximation.Nystroem
|
2020-08-18 14:44:20 +08:00
|
|
|
kernel_approximation.PolynomialCountSketch
|
2012-12-27 05:55:48 +08:00
|
|
|
kernel_approximation.RBFSampler
|
2011-12-20 22:34:15 +08:00
|
|
|
kernel_approximation.SkewedChi2Sampler
|
|
|
|
|
|
2015-01-18 17:47:09 +08:00
|
|
|
.. _kernel_ridge_ref:
|
|
|
|
|
|
2020-09-07 22:26:58 +08:00
|
|
|
:mod:`sklearn.kernel_ridge`: Kernel Ridge Regression
|
|
|
|
|
====================================================
|
2015-01-18 17:47:09 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.kernel_ridge
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`kernel_ridge` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
kernel_ridge.KernelRidge
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _linear_model_ref:
|
|
|
|
|
|
2019-10-08 22:57:43 +08:00
|
|
|
:mod:`sklearn.linear_model`: Linear Models
|
|
|
|
|
==========================================
|
2011-12-03 19:56:12 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.linear_model
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2011-11-30 03:58:20 +08:00
|
|
|
**User guide:** See the :ref:`linear_model` section for further details.
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2019-10-08 22:57:43 +08:00
|
|
|
The following subsections are only rough guidelines: the same estimator can
|
|
|
|
|
fall into multiple categories, depending on its parameters.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2019-10-08 22:57:43 +08:00
|
|
|
Linear classifiers
|
|
|
|
|
------------------
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.LogisticRegression
|
|
|
|
|
linear_model.LogisticRegressionCV
|
|
|
|
|
linear_model.PassiveAggressiveClassifier
|
|
|
|
|
linear_model.Perceptron
|
|
|
|
|
linear_model.RidgeClassifier
|
|
|
|
|
linear_model.RidgeClassifierCV
|
|
|
|
|
linear_model.SGDClassifier
|
2021-03-23 17:53:57 +08:00
|
|
|
linear_model.SGDOneClassSVM
|
2019-10-08 22:57:43 +08:00
|
|
|
|
|
|
|
|
Classical linear regressors
|
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.LinearRegression
|
|
|
|
|
linear_model.Ridge
|
|
|
|
|
linear_model.RidgeCV
|
|
|
|
|
linear_model.SGDRegressor
|
|
|
|
|
|
|
|
|
|
Regressors with variable selection
|
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
|
|
The following estimators have built-in variable selection fitting
|
|
|
|
|
procedures, but any estimator using a L1 or elastic-net penalty also
|
|
|
|
|
performs variable selection: typically :class:`~linear_model.SGDRegressor`
|
|
|
|
|
or :class:`~sklearn.linear_model.SGDClassifier` with an appropriate penalty.
|
|
|
|
|
|
2010-09-28 20:43:56 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
linear_model.ElasticNet
|
|
|
|
|
linear_model.ElasticNetCV
|
|
|
|
|
linear_model.Lars
|
|
|
|
|
linear_model.LarsCV
|
2012-09-18 04:07:16 +08:00
|
|
|
linear_model.Lasso
|
|
|
|
|
linear_model.LassoCV
|
|
|
|
|
linear_model.LassoLars
|
2011-11-29 23:29:49 +08:00
|
|
|
linear_model.LassoLarsCV
|
|
|
|
|
linear_model.LassoLarsIC
|
|
|
|
|
linear_model.OrthogonalMatchingPursuit
|
2013-07-26 15:50:30 +08:00
|
|
|
linear_model.OrthogonalMatchingPursuitCV
|
2019-10-08 22:57:43 +08:00
|
|
|
|
|
|
|
|
Bayesian regressors
|
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.ARDRegression
|
|
|
|
|
linear_model.BayesianRidge
|
|
|
|
|
|
|
|
|
|
Multi-task linear regressors with variable selection
|
|
|
|
|
----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
These estimators fit multiple regression problems (or tasks) jointly, while
|
|
|
|
|
inducing sparse coefficients. While the inferred coefficients may differ
|
|
|
|
|
between the tasks, they are constrained to agree on the features that are
|
|
|
|
|
selected (non-zero coefficients).
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.MultiTaskElasticNet
|
|
|
|
|
linear_model.MultiTaskElasticNetCV
|
|
|
|
|
linear_model.MultiTaskLasso
|
|
|
|
|
linear_model.MultiTaskLassoCV
|
|
|
|
|
|
|
|
|
|
Outlier-robust regressors
|
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
|
|
Any estimator using the Huber loss would also be robust to outliers, e.g.
|
|
|
|
|
:class:`~linear_model.SGDRegressor` with ``loss='huber'``.
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.HuberRegressor
|
2021-05-25 20:02:37 +08:00
|
|
|
linear_model.QuantileRegressor
|
2014-07-15 00:04:22 +08:00
|
|
|
linear_model.RANSACRegressor
|
2014-10-02 15:21:14 +08:00
|
|
|
linear_model.TheilSenRegressor
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2020-03-04 21:08:24 +08:00
|
|
|
Generalized linear models (GLM) for regression
|
|
|
|
|
----------------------------------------------
|
|
|
|
|
|
|
|
|
|
These models allow for response variables to have error distributions other
|
|
|
|
|
than a normal distribution:
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
linear_model.PoissonRegressor
|
|
|
|
|
linear_model.TweedieRegressor
|
|
|
|
|
linear_model.GammaRegressor
|
|
|
|
|
|
|
|
|
|
|
2019-10-08 22:57:43 +08:00
|
|
|
Miscellaneous
|
|
|
|
|
-------------
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2019-10-08 22:57:43 +08:00
|
|
|
linear_model.PassiveAggressiveRegressor
|
2017-06-23 22:06:10 +08:00
|
|
|
linear_model.enet_path
|
2011-11-29 23:29:49 +08:00
|
|
|
linear_model.lars_path
|
2019-03-06 15:06:47 +08:00
|
|
|
linear_model.lars_path_gram
|
2012-09-18 04:07:16 +08:00
|
|
|
linear_model.lasso_path
|
2011-11-29 23:29:49 +08:00
|
|
|
linear_model.orthogonal_mp
|
|
|
|
|
linear_model.orthogonal_mp_gram
|
2018-05-31 05:13:18 +08:00
|
|
|
linear_model.ridge_regression
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _manifold_ref:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.manifold`: Manifold Learning
|
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.manifold
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2011-11-30 03:58:20 +08:00
|
|
|
**User guide:** See the :ref:`manifold` section for further details.
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
manifold.Isomap
|
2017-07-27 19:16:01 +08:00
|
|
|
manifold.LocallyLinearEmbedding
|
2012-05-30 14:32:36 +08:00
|
|
|
manifold.MDS
|
2012-11-19 15:15:46 +08:00
|
|
|
manifold.SpectralEmbedding
|
2014-02-13 05:47:34 +08:00
|
|
|
manifold.TSNE
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
manifold.locally_linear_embedding
|
2016-09-29 02:33:08 +08:00
|
|
|
manifold.smacof
|
2017-07-27 19:16:01 +08:00
|
|
|
manifold.spectral_embedding
|
2019-10-23 22:59:18 +08:00
|
|
|
manifold.trustworthiness
|
2020-07-04 19:24:20 +08:00
|
|
|
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _metrics_ref:
|
2010-09-28 20:43:56 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.metrics`: Metrics
|
|
|
|
|
===============================
|
2011-03-01 01:18:37 +08:00
|
|
|
|
2013-01-02 23:18:09 +08:00
|
|
|
See the :ref:`model_evaluation` section and the :ref:`metrics` section of the
|
|
|
|
|
user guide for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. automodule:: sklearn.metrics
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-03-01 01:18:37 +08:00
|
|
|
|
2013-01-31 03:08:10 +08:00
|
|
|
Model Selection Interface
|
|
|
|
|
-------------------------
|
2013-07-26 21:32:01 +08:00
|
|
|
See the :ref:`scoring_parameter` section of the user guide for further
|
|
|
|
|
details.
|
|
|
|
|
|
2012-12-19 16:36:12 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2013-07-01 23:54:39 +08:00
|
|
|
:template: function.rst
|
2012-12-19 16:36:12 +08:00
|
|
|
|
2018-01-02 17:14:07 +08:00
|
|
|
metrics.check_scoring
|
2013-12-19 13:26:38 +08:00
|
|
|
metrics.get_scorer
|
2022-03-20 04:30:21 +08:00
|
|
|
metrics.get_scorer_names
|
2017-07-27 19:16:01 +08:00
|
|
|
metrics.make_scorer
|
2012-12-19 16:36:12 +08:00
|
|
|
|
2011-11-30 18:05:10 +08:00
|
|
|
Classification metrics
|
|
|
|
|
----------------------
|
|
|
|
|
|
2013-07-26 21:32:01 +08:00
|
|
|
See the :ref:`classification_metrics` section of the user guide for further
|
|
|
|
|
details.
|
|
|
|
|
|
2011-03-01 01:18:37 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2013-01-04 21:37:56 +08:00
|
|
|
metrics.accuracy_score
|
2011-03-01 01:18:37 +08:00
|
|
|
metrics.auc
|
2012-08-12 06:32:33 +08:00
|
|
|
metrics.average_precision_score
|
2017-10-17 23:12:27 +08:00
|
|
|
metrics.balanced_accuracy_score
|
2015-02-18 19:11:52 +08:00
|
|
|
metrics.brier_score_loss
|
2011-03-01 01:18:37 +08:00
|
|
|
metrics.classification_report
|
2016-05-23 10:09:51 +08:00
|
|
|
metrics.cohen_kappa_score
|
2013-01-02 23:44:06 +08:00
|
|
|
metrics.confusion_matrix
|
2019-08-15 11:50:15 +08:00
|
|
|
metrics.dcg_score
|
2020-08-29 10:36:52 +08:00
|
|
|
metrics.det_curve
|
2013-01-02 23:44:06 +08:00
|
|
|
metrics.f1_score
|
|
|
|
|
metrics.fbeta_score
|
2013-01-21 22:19:39 +08:00
|
|
|
metrics.hamming_loss
|
2013-01-02 23:44:06 +08:00
|
|
|
metrics.hinge_loss
|
2019-03-13 20:59:08 +08:00
|
|
|
metrics.jaccard_score
|
2013-05-28 19:01:22 +08:00
|
|
|
metrics.log_loss
|
2013-01-04 00:38:36 +08:00
|
|
|
metrics.matthews_corrcoef
|
2018-10-30 19:26:37 +08:00
|
|
|
metrics.multilabel_confusion_matrix
|
2019-08-15 11:50:15 +08:00
|
|
|
metrics.ndcg_score
|
2011-03-01 01:18:37 +08:00
|
|
|
metrics.precision_recall_curve
|
2013-01-02 23:44:06 +08:00
|
|
|
metrics.precision_recall_fscore_support
|
|
|
|
|
metrics.precision_score
|
|
|
|
|
metrics.recall_score
|
2013-08-07 16:23:37 +08:00
|
|
|
metrics.roc_auc_score
|
2013-01-02 23:44:06 +08:00
|
|
|
metrics.roc_curve
|
2020-10-16 22:51:41 +08:00
|
|
|
metrics.top_k_accuracy_score
|
2013-01-04 18:50:25 +08:00
|
|
|
metrics.zero_one_loss
|
2011-05-15 23:29:21 +08:00
|
|
|
|
|
|
|
|
Regression metrics
|
|
|
|
|
------------------
|
|
|
|
|
|
2013-01-02 23:18:09 +08:00
|
|
|
See the :ref:`regression_metrics` section of the user guide for further
|
|
|
|
|
details.
|
|
|
|
|
|
2011-05-15 23:29:21 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2013-01-04 00:57:52 +08:00
|
|
|
metrics.explained_variance_score
|
2018-10-11 15:33:06 +08:00
|
|
|
metrics.max_error
|
2013-01-02 23:42:31 +08:00
|
|
|
metrics.mean_absolute_error
|
2012-02-16 23:09:31 +08:00
|
|
|
metrics.mean_squared_error
|
2016-11-30 08:59:55 +08:00
|
|
|
metrics.mean_squared_log_error
|
2014-10-11 02:25:22 +08:00
|
|
|
metrics.median_absolute_error
|
2020-07-04 19:24:20 +08:00
|
|
|
metrics.mean_absolute_percentage_error
|
2013-01-02 23:42:31 +08:00
|
|
|
metrics.r2_score
|
2019-07-19 23:45:00 +08:00
|
|
|
metrics.mean_poisson_deviance
|
|
|
|
|
metrics.mean_gamma_deviance
|
|
|
|
|
metrics.mean_tweedie_deviance
|
2021-09-05 05:17:03 +08:00
|
|
|
metrics.d2_tweedie_score
|
2021-02-19 02:43:40 +08:00
|
|
|
metrics.mean_pinball_loss
|
2013-01-02 23:42:31 +08:00
|
|
|
|
2014-01-31 00:41:01 +08:00
|
|
|
Multilabel ranking metrics
|
|
|
|
|
--------------------------
|
|
|
|
|
See the :ref:`multilabel_ranking_metrics` section of the user guide for further
|
|
|
|
|
details.
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2014-11-21 20:52:21 +08:00
|
|
|
metrics.coverage_error
|
2014-01-31 00:41:01 +08:00
|
|
|
metrics.label_ranking_average_precision_score
|
2014-12-17 00:25:12 +08:00
|
|
|
metrics.label_ranking_loss
|
2014-01-31 00:41:01 +08:00
|
|
|
|
2011-05-15 23:29:21 +08:00
|
|
|
|
|
|
|
|
Clustering metrics
|
|
|
|
|
------------------
|
|
|
|
|
|
2013-01-04 01:10:37 +08:00
|
|
|
See the :ref:`clustering_evaluation` section of the user guide for further
|
|
|
|
|
details.
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. automodule:: sklearn.metrics.cluster
|
2011-05-15 23:29:21 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-05-15 23:29:21 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2011-12-22 01:12:50 +08:00
|
|
|
metrics.adjusted_mutual_info_score
|
2012-04-17 00:10:50 +08:00
|
|
|
metrics.adjusted_rand_score
|
2018-10-24 15:38:39 +08:00
|
|
|
metrics.calinski_harabasz_score
|
2018-05-18 19:52:48 +08:00
|
|
|
metrics.davies_bouldin_score
|
2012-04-17 00:10:50 +08:00
|
|
|
metrics.completeness_score
|
2017-12-08 08:37:57 +08:00
|
|
|
metrics.cluster.contingency_matrix
|
2020-10-28 21:28:11 +08:00
|
|
|
metrics.cluster.pair_confusion_matrix
|
2016-06-16 22:01:19 +08:00
|
|
|
metrics.fowlkes_mallows_score
|
2011-05-15 21:36:12 +08:00
|
|
|
metrics.homogeneity_completeness_v_measure
|
|
|
|
|
metrics.homogeneity_score
|
2012-04-28 04:44:38 +08:00
|
|
|
metrics.mutual_info_score
|
2012-04-17 00:10:50 +08:00
|
|
|
metrics.normalized_mutual_info_score
|
2020-10-28 21:28:11 +08:00
|
|
|
metrics.rand_score
|
2011-10-08 17:28:45 +08:00
|
|
|
metrics.silhouette_score
|
2013-01-12 00:55:57 +08:00
|
|
|
metrics.silhouette_samples
|
2012-04-17 00:10:50 +08:00
|
|
|
metrics.v_measure_score
|
2011-03-01 01:18:37 +08:00
|
|
|
|
2013-07-18 12:24:57 +08:00
|
|
|
Biclustering metrics
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
See the :ref:`biclustering_evaluation` section of the user guide for
|
|
|
|
|
further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
metrics.consensus_score
|
|
|
|
|
|
2021-10-08 23:57:32 +08:00
|
|
|
Distance metrics
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
metrics.DistanceMetric
|
2013-07-18 12:24:57 +08:00
|
|
|
|
2011-04-11 06:10:26 +08:00
|
|
|
Pairwise metrics
|
2011-05-15 23:29:21 +08:00
|
|
|
----------------
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2014-11-30 21:12:55 +08:00
|
|
|
See the :ref:`metrics` section of the user guide for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. automodule:: sklearn.metrics.pairwise
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2012-11-26 01:47:52 +08:00
|
|
|
metrics.pairwise.additive_chi2_kernel
|
2012-11-25 04:28:30 +08:00
|
|
|
metrics.pairwise.chi2_kernel
|
2017-07-27 19:16:01 +08:00
|
|
|
metrics.pairwise.cosine_similarity
|
|
|
|
|
metrics.pairwise.cosine_distances
|
2012-11-25 04:28:30 +08:00
|
|
|
metrics.pairwise.distance_metrics
|
2011-04-11 06:10:26 +08:00
|
|
|
metrics.pairwise.euclidean_distances
|
2019-04-24 20:33:23 +08:00
|
|
|
metrics.pairwise.haversine_distances
|
2012-11-25 04:28:30 +08:00
|
|
|
metrics.pairwise.kernel_metrics
|
2017-07-27 19:16:01 +08:00
|
|
|
metrics.pairwise.laplacian_kernel
|
2011-04-11 06:10:26 +08:00
|
|
|
metrics.pairwise.linear_kernel
|
2012-11-25 04:28:30 +08:00
|
|
|
metrics.pairwise.manhattan_distances
|
2019-09-04 07:08:59 +08:00
|
|
|
metrics.pairwise.nan_euclidean_distances
|
2011-09-10 17:54:07 +08:00
|
|
|
metrics.pairwise.pairwise_kernels
|
2012-11-25 04:28:30 +08:00
|
|
|
metrics.pairwise.polynomial_kernel
|
|
|
|
|
metrics.pairwise.rbf_kernel
|
2015-11-06 03:51:41 +08:00
|
|
|
metrics.pairwise.sigmoid_kernel
|
|
|
|
|
metrics.pairwise.paired_euclidean_distances
|
|
|
|
|
metrics.pairwise.paired_manhattan_distances
|
|
|
|
|
metrics.pairwise.paired_cosine_distances
|
|
|
|
|
metrics.pairwise.paired_distances
|
2017-07-27 19:16:01 +08:00
|
|
|
metrics.pairwise_distances
|
|
|
|
|
metrics.pairwise_distances_argmin
|
|
|
|
|
metrics.pairwise_distances_argmin_min
|
2018-05-25 10:04:05 +08:00
|
|
|
metrics.pairwise_distances_chunked
|
2016-05-23 10:09:51 +08:00
|
|
|
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2019-08-08 08:28:17 +08:00
|
|
|
Plotting
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
See the :ref:`visualizations` section of the user guide for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2019-11-14 21:43:54 +08:00
|
|
|
metrics.plot_confusion_matrix
|
2020-08-29 10:36:52 +08:00
|
|
|
metrics.plot_det_curve
|
2019-11-11 10:54:35 +08:00
|
|
|
metrics.plot_precision_recall_curve
|
2019-08-08 08:28:17 +08:00
|
|
|
metrics.plot_roc_curve
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2019-11-14 21:43:54 +08:00
|
|
|
metrics.ConfusionMatrixDisplay
|
2020-08-29 10:36:52 +08:00
|
|
|
metrics.DetCurveDisplay
|
2019-11-11 10:54:35 +08:00
|
|
|
metrics.PrecisionRecallDisplay
|
2019-08-08 08:28:17 +08:00
|
|
|
metrics.RocCurveDisplay
|
2021-08-31 15:43:05 +08:00
|
|
|
calibration.CalibrationDisplay
|
2019-08-08 08:28:17 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _mixture_ref:
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.mixture`: Gaussian Mixture Models
|
|
|
|
|
===============================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.mixture
|
2011-05-21 20:46:16 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`mixture` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-05-21 20:46:16 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2016-08-31 01:02:30 +08:00
|
|
|
mixture.BayesianGaussianMixture
|
2017-07-27 19:16:01 +08:00
|
|
|
mixture.GaussianMixture
|
2011-02-25 09:04:37 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
.. _modelselection_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.model_selection`: Model Selection
|
|
|
|
|
===============================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.model_selection
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`cross_validation`, :ref:`grid_search` and
|
|
|
|
|
:ref:`learning_curve` sections for further details.
|
|
|
|
|
|
|
|
|
|
Splitter Classes
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
model_selection.GroupKFold
|
|
|
|
|
model_selection.GroupShuffleSplit
|
|
|
|
|
model_selection.KFold
|
|
|
|
|
model_selection.LeaveOneGroupOut
|
|
|
|
|
model_selection.LeavePGroupsOut
|
|
|
|
|
model_selection.LeaveOneOut
|
|
|
|
|
model_selection.LeavePOut
|
|
|
|
|
model_selection.PredefinedSplit
|
|
|
|
|
model_selection.RepeatedKFold
|
|
|
|
|
model_selection.RepeatedStratifiedKFold
|
|
|
|
|
model_selection.ShuffleSplit
|
|
|
|
|
model_selection.StratifiedKFold
|
|
|
|
|
model_selection.StratifiedShuffleSplit
|
2021-03-20 18:57:42 +08:00
|
|
|
model_selection.StratifiedGroupKFold
|
2017-07-27 19:16:01 +08:00
|
|
|
model_selection.TimeSeriesSplit
|
2011-02-25 09:04:37 +08:00
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
Splitter Functions
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
model_selection.check_cv
|
|
|
|
|
model_selection.train_test_split
|
|
|
|
|
|
2020-10-08 14:42:37 +08:00
|
|
|
.. _hyper_parameter_optimizers:
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
Hyper-parameter optimizers
|
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
model_selection.GridSearchCV
|
2020-09-09 23:12:35 +08:00
|
|
|
model_selection.HalvingGridSearchCV
|
2017-07-27 19:16:01 +08:00
|
|
|
model_selection.ParameterGrid
|
|
|
|
|
model_selection.ParameterSampler
|
|
|
|
|
model_selection.RandomizedSearchCV
|
2020-09-09 23:12:35 +08:00
|
|
|
model_selection.HalvingRandomSearchCV
|
2017-07-27 19:16:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Model validation
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
model_selection.cross_validate
|
|
|
|
|
model_selection.cross_val_predict
|
|
|
|
|
model_selection.cross_val_score
|
|
|
|
|
model_selection.learning_curve
|
|
|
|
|
model_selection.permutation_test_score
|
|
|
|
|
model_selection.validation_curve
|
2010-09-09 23:43:40 +08:00
|
|
|
|
2011-12-21 23:40:32 +08:00
|
|
|
.. _multiclass_ref:
|
|
|
|
|
|
2020-09-18 00:21:51 +08:00
|
|
|
:mod:`sklearn.multiclass`: Multiclass classification
|
|
|
|
|
====================================================
|
2011-12-21 23:40:32 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.multiclass
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2020-09-18 00:21:51 +08:00
|
|
|
**User guide:** See the :ref:`multiclass_classification` section for further details.
|
2011-12-21 23:40:32 +08:00
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
multiclass.OneVsRestClassifier
|
|
|
|
|
multiclass.OneVsOneClassifier
|
|
|
|
|
multiclass.OutputCodeClassifier
|
|
|
|
|
|
2016-01-15 04:06:17 +08:00
|
|
|
.. _multioutput_ref:
|
|
|
|
|
|
2016-01-08 22:18:44 +08:00
|
|
|
:mod:`sklearn.multioutput`: Multioutput regression and classification
|
|
|
|
|
=====================================================================
|
2016-01-15 04:06:17 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.multioutput
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2020-09-18 00:21:51 +08:00
|
|
|
**User guide:** See the :ref:`multilabel_classification`,
|
|
|
|
|
:ref:`multiclass_multioutput_classification`, and
|
|
|
|
|
:ref:`multioutput_regression` sections for further details.
|
2016-01-15 04:06:17 +08:00
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
multioutput.ClassifierChain
|
2016-01-15 04:06:17 +08:00
|
|
|
multioutput.MultiOutputRegressor
|
2016-01-08 22:18:44 +08:00
|
|
|
multioutput.MultiOutputClassifier
|
2017-12-12 06:00:57 +08:00
|
|
|
multioutput.RegressorChain
|
2016-01-15 04:06:17 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _naive_bayes_ref:
|
2010-11-24 18:45:10 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.naive_bayes`: Naive Bayes
|
|
|
|
|
=======================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.naive_bayes
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-19 18:40:41 +08:00
|
|
|
**User guide:** See the :ref:`naive_bayes` section for further details.
|
2011-12-03 19:56:12 +08:00
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-11-24 18:45:10 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2017-07-27 19:16:01 +08:00
|
|
|
naive_bayes.BernoulliNB
|
2019-09-24 05:38:22 +08:00
|
|
|
naive_bayes.CategoricalNB
|
|
|
|
|
naive_bayes.ComplementNB
|
2011-11-29 23:29:49 +08:00
|
|
|
naive_bayes.GaussianNB
|
|
|
|
|
naive_bayes.MultinomialNB
|
2010-11-24 18:45:10 +08:00
|
|
|
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _neighbors_ref:
|
2010-10-05 22:20:04 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.neighbors`: Nearest Neighbors
|
|
|
|
|
===========================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. automodule:: sklearn.neighbors
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`neighbors` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-10-05 22:20:04 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
neighbors.BallTree
|
2017-07-27 19:16:01 +08:00
|
|
|
neighbors.KDTree
|
2013-07-06 23:44:13 +08:00
|
|
|
neighbors.KernelDensity
|
2017-07-27 19:16:01 +08:00
|
|
|
neighbors.KNeighborsClassifier
|
|
|
|
|
neighbors.KNeighborsRegressor
|
2019-09-19 02:32:59 +08:00
|
|
|
neighbors.KNeighborsTransformer
|
2016-10-25 23:53:51 +08:00
|
|
|
neighbors.LocalOutlierFactor
|
2017-07-27 19:16:01 +08:00
|
|
|
neighbors.RadiusNeighborsClassifier
|
|
|
|
|
neighbors.RadiusNeighborsRegressor
|
2019-09-19 02:32:59 +08:00
|
|
|
neighbors.RadiusNeighborsTransformer
|
2017-07-27 19:16:01 +08:00
|
|
|
neighbors.NearestCentroid
|
|
|
|
|
neighbors.NearestNeighbors
|
2019-02-28 22:58:07 +08:00
|
|
|
neighbors.NeighborhoodComponentsAnalysis
|
2016-12-12 23:10:39 +08:00
|
|
|
|
2011-09-21 18:06:53 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
neighbors.kneighbors_graph
|
|
|
|
|
neighbors.radius_neighbors_graph
|
2010-10-06 17:45:01 +08:00
|
|
|
|
2013-02-03 01:07:37 +08:00
|
|
|
.. _neural_network_ref:
|
2013-01-03 04:34:57 +08:00
|
|
|
|
2013-02-03 01:07:37 +08:00
|
|
|
:mod:`sklearn.neural_network`: Neural network models
|
2020-09-07 22:26:58 +08:00
|
|
|
====================================================
|
2013-01-03 04:34:57 +08:00
|
|
|
|
2013-02-03 01:07:37 +08:00
|
|
|
.. automodule:: sklearn.neural_network
|
2013-01-03 04:34:57 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2015-11-03 21:21:36 +08:00
|
|
|
**User guide:** See the :ref:`neural_networks_supervised` and :ref:`neural_networks_unsupervised` sections for further details.
|
2013-01-03 04:34:57 +08:00
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2013-02-03 01:07:37 +08:00
|
|
|
neural_network.BernoulliRBM
|
2015-06-06 01:36:36 +08:00
|
|
|
neural_network.MLPClassifier
|
|
|
|
|
neural_network.MLPRegressor
|
2013-01-03 04:34:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _pipeline_ref:
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.pipeline`: Pipeline
|
|
|
|
|
=================================
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.pipeline
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2020-04-03 01:56:14 +08:00
|
|
|
**User guide:** See the :ref:`combining_estimators` section for further
|
|
|
|
|
details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-10-06 17:45:01 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2012-09-23 19:38:27 +08:00
|
|
|
pipeline.FeatureUnion
|
2017-07-27 19:16:01 +08:00
|
|
|
pipeline.Pipeline
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2013-12-19 06:37:03 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
pipeline.make_pipeline
|
|
|
|
|
pipeline.make_union
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _preprocessing_ref:
|
2010-10-06 17:45:01 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.preprocessing`: Preprocessing and Normalization
|
|
|
|
|
=============================================================
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. automodule:: sklearn.preprocessing
|
2011-06-04 10:22:11 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`preprocessing` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-06-04 10:22:11 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
preprocessing.Binarizer
|
2015-07-31 00:48:04 +08:00
|
|
|
preprocessing.FunctionTransformer
|
2017-07-12 16:20:14 +08:00
|
|
|
preprocessing.KBinsDiscretizer
|
2012-09-23 19:58:12 +08:00
|
|
|
preprocessing.KernelCenterer
|
2011-06-04 10:22:11 +08:00
|
|
|
preprocessing.LabelBinarizer
|
2012-08-08 17:04:56 +08:00
|
|
|
preprocessing.LabelEncoder
|
2013-12-11 17:48:22 +08:00
|
|
|
preprocessing.MultiLabelBinarizer
|
2015-07-02 17:33:47 +08:00
|
|
|
preprocessing.MaxAbsScaler
|
2012-09-23 19:58:12 +08:00
|
|
|
preprocessing.MinMaxScaler
|
|
|
|
|
preprocessing.Normalizer
|
2012-10-26 04:07:02 +08:00
|
|
|
preprocessing.OneHotEncoder
|
2018-06-21 17:27:41 +08:00
|
|
|
preprocessing.OrdinalEncoder
|
2014-01-24 06:16:05 +08:00
|
|
|
preprocessing.PolynomialFeatures
|
2017-12-06 05:29:10 +08:00
|
|
|
preprocessing.PowerTransformer
|
2017-06-10 07:15:46 +08:00
|
|
|
preprocessing.QuantileTransformer
|
2015-05-27 20:37:42 +08:00
|
|
|
preprocessing.RobustScaler
|
2021-01-24 17:53:27 +08:00
|
|
|
preprocessing.SplineTransformer
|
2015-05-27 20:37:42 +08:00
|
|
|
preprocessing.StandardScaler
|
2011-06-04 10:22:11 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
2012-11-22 01:59:52 +08:00
|
|
|
preprocessing.add_dummy_feature
|
2011-06-04 22:14:01 +08:00
|
|
|
preprocessing.binarize
|
2013-07-24 00:37:41 +08:00
|
|
|
preprocessing.label_binarize
|
2015-07-02 17:33:47 +08:00
|
|
|
preprocessing.maxabs_scale
|
|
|
|
|
preprocessing.minmax_scale
|
2012-11-22 01:59:52 +08:00
|
|
|
preprocessing.normalize
|
2017-06-10 07:15:46 +08:00
|
|
|
preprocessing.quantile_transform
|
2015-07-02 17:33:47 +08:00
|
|
|
preprocessing.robust_scale
|
2012-11-22 01:59:52 +08:00
|
|
|
preprocessing.scale
|
2017-12-06 05:29:10 +08:00
|
|
|
preprocessing.power_transform
|
2011-06-04 10:22:11 +08:00
|
|
|
|
|
|
|
|
|
2012-12-19 22:34:29 +08:00
|
|
|
.. _random_projection_ref:
|
|
|
|
|
|
|
|
|
|
:mod:`sklearn.random_projection`: Random projection
|
|
|
|
|
===================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.random_projection
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`random_projection` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
random_projection.GaussianRandomProjection
|
2012-12-20 23:40:50 +08:00
|
|
|
random_projection.SparseRandomProjection
|
2012-12-19 22:34:29 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2018-06-04 21:33:54 +08:00
|
|
|
:template: function.rst
|
2012-12-19 22:34:29 +08:00
|
|
|
|
|
|
|
|
random_projection.johnson_lindenstrauss_min_dim
|
|
|
|
|
|
|
|
|
|
|
2014-01-09 12:07:33 +08:00
|
|
|
.. _semi_supervised_ref:
|
|
|
|
|
|
2020-09-07 22:26:58 +08:00
|
|
|
:mod:`sklearn.semi_supervised`: Semi-Supervised Learning
|
2014-01-09 12:07:33 +08:00
|
|
|
========================================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.semi_supervised
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
|
|
|
|
**User guide:** See the :ref:`semi_supervised` section for further details.
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
semi_supervised.LabelPropagation
|
|
|
|
|
semi_supervised.LabelSpreading
|
2020-11-21 02:49:08 +08:00
|
|
|
semi_supervised.SelfTrainingClassifier
|
2014-01-09 12:07:33 +08:00
|
|
|
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _svm_ref:
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.svm`: Support Vector Machines
|
|
|
|
|
===========================================
|
|
|
|
|
|
|
|
|
|
.. automodule:: sklearn.svm
|
|
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-30 03:58:20 +08:00
|
|
|
**User guide:** See the :ref:`svm` section for further details.
|
2011-01-31 23:51:38 +08:00
|
|
|
|
2012-03-03 22:42:23 +08:00
|
|
|
Estimators
|
|
|
|
|
----------
|
2011-11-30 18:05:10 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-01-31 23:51:38 +08:00
|
|
|
|
|
|
|
|
.. autosummary::
|
2011-11-29 23:29:49 +08:00
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
2011-01-31 23:51:38 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
svm.LinearSVC
|
2014-12-10 16:26:19 +08:00
|
|
|
svm.LinearSVR
|
2017-07-27 19:16:01 +08:00
|
|
|
svm.NuSVC
|
2011-11-29 23:29:49 +08:00
|
|
|
svm.NuSVR
|
|
|
|
|
svm.OneClassSVM
|
2017-07-27 19:16:01 +08:00
|
|
|
svm.SVC
|
|
|
|
|
svm.SVR
|
2011-01-31 23:51:38 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
2011-08-06 22:42:47 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
svm.l1_min_c
|
2011-11-11 18:41:57 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _tree_ref:
|
2010-10-06 17:45:01 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.tree`: Decision Trees
|
|
|
|
|
===================================
|
2011-11-29 23:29:49 +08:00
|
|
|
|
|
|
|
|
.. automodule:: sklearn.tree
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
**User guide:** See the :ref:`tree` section for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2010-10-06 17:45:01 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
tree.DecisionTreeClassifier
|
|
|
|
|
tree.DecisionTreeRegressor
|
|
|
|
|
tree.ExtraTreeClassifier
|
|
|
|
|
tree.ExtraTreeRegressor
|
|
|
|
|
|
2011-11-30 18:05:10 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
tree.export_graphviz
|
2019-02-12 07:23:48 +08:00
|
|
|
tree.export_text
|
2011-11-29 23:29:49 +08:00
|
|
|
|
2019-08-08 09:37:29 +08:00
|
|
|
Plotting
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: sklearn
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
tree.plot_tree
|
2011-02-21 22:41:36 +08:00
|
|
|
|
2011-11-29 23:29:49 +08:00
|
|
|
.. _utils_ref:
|
2011-02-21 22:41:36 +08:00
|
|
|
|
2011-12-03 19:56:12 +08:00
|
|
|
:mod:`sklearn.utils`: Utilities
|
|
|
|
|
===============================
|
2011-02-21 22:41:36 +08:00
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. automodule:: sklearn.utils
|
2011-04-11 06:10:26 +08:00
|
|
|
:no-members:
|
|
|
|
|
:no-inherited-members:
|
|
|
|
|
|
2011-12-20 17:59:17 +08:00
|
|
|
**Developer guide:** See the :ref:`developers-utils` page for further details.
|
|
|
|
|
|
2011-09-02 17:00:02 +08:00
|
|
|
.. currentmodule:: sklearn
|
2011-04-11 06:10:26 +08:00
|
|
|
|
2022-03-26 05:27:51 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: class.rst
|
|
|
|
|
|
|
|
|
|
utils.Bunch
|
|
|
|
|
|
2011-02-21 22:41:36 +08:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
2011-05-21 20:46:16 +08:00
|
|
|
:template: function.rst
|
2011-03-09 22:10:57 +08:00
|
|
|
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.arrayfuncs.min_pos
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.as_float_array
|
2017-07-27 19:16:01 +08:00
|
|
|
utils.assert_all_finite
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.check_X_y
|
|
|
|
|
utils.check_array
|
2019-02-28 22:58:07 +08:00
|
|
|
utils.check_scalar
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.check_consistent_length
|
2011-05-21 20:46:16 +08:00
|
|
|
utils.check_random_state
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.class_weight.compute_class_weight
|
|
|
|
|
utils.class_weight.compute_sample_weight
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.deprecated
|
2015-04-08 06:48:04 +08:00
|
|
|
utils.estimator_checks.check_estimator
|
2019-08-28 14:07:28 +08:00
|
|
|
utils.estimator_checks.parametrize_with_checks
|
2020-04-30 06:31:58 +08:00
|
|
|
utils.estimator_html_repr
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.extmath.safe_sparse_dot
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.extmath.randomized_range_finder
|
|
|
|
|
utils.extmath.randomized_svd
|
|
|
|
|
utils.extmath.fast_logdet
|
|
|
|
|
utils.extmath.density
|
|
|
|
|
utils.extmath.weighted_mode
|
2021-03-17 22:53:00 +08:00
|
|
|
utils.gen_batches
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.gen_even_slices
|
|
|
|
|
utils.graph.single_source_shortest_path_length
|
2017-07-27 19:16:01 +08:00
|
|
|
utils.indexable
|
2021-07-11 21:36:26 +08:00
|
|
|
utils.metaestimators.available_if
|
2018-01-02 17:14:07 +08:00
|
|
|
utils.multiclass.type_of_target
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.multiclass.is_multilabel
|
|
|
|
|
utils.multiclass.unique_labels
|
|
|
|
|
utils.murmurhash3_32
|
2011-05-21 20:46:16 +08:00
|
|
|
utils.resample
|
2019-10-02 23:47:46 +08:00
|
|
|
utils._safe_indexing
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.safe_mask
|
|
|
|
|
utils.safe_sqr
|
2011-05-21 20:46:16 +08:00
|
|
|
utils.shuffle
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.sparsefuncs.incr_mean_variance_axis
|
|
|
|
|
utils.sparsefuncs.inplace_column_scale
|
|
|
|
|
utils.sparsefuncs.inplace_row_scale
|
|
|
|
|
utils.sparsefuncs.inplace_swap_row
|
|
|
|
|
utils.sparsefuncs.inplace_swap_column
|
2017-07-27 19:16:01 +08:00
|
|
|
utils.sparsefuncs.mean_variance_axis
|
2018-02-25 02:42:44 +08:00
|
|
|
utils.sparsefuncs.inplace_csr_column_scale
|
|
|
|
|
utils.sparsefuncs_fast.inplace_csr_row_normalize_l1
|
|
|
|
|
utils.sparsefuncs_fast.inplace_csr_row_normalize_l2
|
|
|
|
|
utils.random.sample_without_replacement
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.validation.check_is_fitted
|
2017-08-30 13:21:24 +08:00
|
|
|
utils.validation.check_memory
|
2017-06-08 21:31:26 +08:00
|
|
|
utils.validation.check_symmetric
|
|
|
|
|
utils.validation.column_or_1d
|
|
|
|
|
utils.validation.has_fit_parameter
|
2019-10-29 00:28:56 +08:00
|
|
|
utils.all_estimators
|
2016-10-30 23:04:35 +08:00
|
|
|
|
2018-07-18 00:02:11 +08:00
|
|
|
Utilities from joblib:
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
utils.parallel_backend
|
2018-11-20 07:53:52 +08:00
|
|
|
utils.register_parallel_backend
|
2016-10-30 23:04:35 +08:00
|
|
|
|
2019-04-27 03:14:59 +08:00
|
|
|
|
2016-10-30 23:04:35 +08:00
|
|
|
Recently deprecated
|
|
|
|
|
===================
|
|
|
|
|
|
2022-03-18 01:16:53 +08:00
|
|
|
To be removed in 1.3
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated/
|
|
|
|
|
:template: function.rst
|
|
|
|
|
|
|
|
|
|
utils.metaestimators.if_delegate_has_method
|