2020-08-02 21:07:48 +08:00
|
|
|
.. Places parent toc into the sidebar
|
|
|
|
|
|
|
|
|
|
:parenttoc: True
|
|
|
|
|
|
2011-12-18 20:49:29 +08:00
|
|
|
.. include:: includes/big_toc_css.rst
|
|
|
|
|
|
|
|
|
|
.. _data-transforms:
|
|
|
|
|
|
|
|
|
|
Dataset transformations
|
|
|
|
|
-----------------------
|
|
|
|
|
|
2014-08-24 11:59:30 +08:00
|
|
|
scikit-learn provides a library of transformers, which may clean (see
|
|
|
|
|
:ref:`preprocessing`), reduce (see :ref:`data_reduction`), expand (see
|
|
|
|
|
:ref:`kernel_approximation`) or generate (see :ref:`feature_extraction`)
|
|
|
|
|
feature representations.
|
|
|
|
|
|
2015-11-17 06:27:51 +08:00
|
|
|
Like other estimators, these are represented by classes with a ``fit`` method,
|
2014-08-24 11:59:30 +08:00
|
|
|
which learns model parameters (e.g. mean and standard deviation for
|
|
|
|
|
normalization) from a training set, and a ``transform`` method which applies
|
|
|
|
|
this transformation model to unseen data. ``fit_transform`` may be more
|
|
|
|
|
convenient and efficient for modelling and transforming the training data
|
|
|
|
|
simultaneously.
|
|
|
|
|
|
|
|
|
|
Combining such transformers, either in parallel or series is covered in
|
|
|
|
|
:ref:`combining_estimators`. :ref:`metrics` covers transforming feature
|
|
|
|
|
spaces into affinity matrices, while :ref:`preprocessing_targets` considers
|
|
|
|
|
transformations of the target space (e.g. categorical labels) for use in
|
|
|
|
|
scikit-learn.
|
|
|
|
|
|
2011-12-18 20:49:29 +08:00
|
|
|
.. toctree::
|
2019-09-21 18:22:34 +08:00
|
|
|
:maxdepth: 2
|
2011-12-18 20:49:29 +08:00
|
|
|
|
2018-03-16 21:27:03 +08:00
|
|
|
modules/compose
|
2011-12-18 20:49:29 +08:00
|
|
|
modules/feature_extraction
|
2013-04-18 21:50:51 +08:00
|
|
|
modules/preprocessing
|
2018-03-14 19:53:10 +08:00
|
|
|
modules/impute
|
2014-08-24 11:59:30 +08:00
|
|
|
modules/unsupervised_reduction
|
2012-12-19 22:34:29 +08:00
|
|
|
modules/random_projection
|
2014-08-24 11:59:30 +08:00
|
|
|
modules/kernel_approximation
|
2012-11-26 02:42:42 +08:00
|
|
|
modules/metrics
|
2014-08-24 11:59:30 +08:00
|
|
|
modules/preprocessing_targets
|