.. _l-classes: Classes ======= .. contents:: :local: :depth: 1 Summary +++++++ +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | class | class parent | truncated documentation | +==================================================================================================================================+==============+====================================================================================================================================================================================+ | :class:`ARTimeSeriesRegressor ` | | Base class to build a regressor on timeseries. The class computes one or several predictions at each time, between ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`ApproximateNMFPredictor ` | | Converts :epkg:`sklearn:decomposition:NMF` into a predictor so that the prediction does not involve training even ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`BaseEstimatorDebugInformation ` | | Stores information when the outputs of a pipeline is computed. It as added by function @see fct alter_pipeline_for_debugging. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`BaseReciprocalTimeSeriesTransformer ` | | Base for all timeseries preprocessing automatically applied within a predictor. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`BaseReciprocalTransformer ` | | Base for transform which transforms the features and the targets at the same time. It must also return another transform ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`BaseTimeSeries ` | | Base class to build a predictor on timeseries. The class computes one or several predictions at each time, between ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`CategoriesToIntegers ` | | Does something similar to what `DictVectorizer `_ ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`ClassifierAfterKMeans ` | | Applies a *k-means* (see :epkg:`sklearn:cluster:KMeans`) for each class, then adds the distance to each cluster ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`CommonRegressorCriterion ` | | Common class to implement various version of `mean square error `_. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`ConstraintKMeans ` | | Defines a constraint :epkg:`k-means`. Clusters are modified to have an equal size. The algorithm is initialized ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`CustomizedMultilayerPerceptron ` | | Customized MLP Perceptron based on `BaseMultilayerPerceptron `_. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`DecisionTreeLogisticRegression ` | | Fits a logistic regression, then fits two other logistic regression for every observation on both sides of the border. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`DummyTimeSeriesRegressor ` | | Dummy regressor for time series. Use past values as prediction. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`ExtendedFeatures ` | | Generates extended features such as polynomial features. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`FeaturizerTypeError ` | | Unable to process a type. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`FunctionReciprocalTransformer ` | | The transform is used to apply a function on a the target, predict, then transform the target back before scoring. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`IntervalRegressor ` | | Trains multiple regressors to provide a confidence interval on prediction. It only works for single regression. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`KMeansL1L2 ` | | K-Means clustering with either norm L1 or L2. See notebook :ref:`kmeansl1rst` for an example. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`LinearRegressorCriterion ` | | Criterion which computes the mean square error assuming points falling into one node are approximated by a line ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`MLCache ` | | Implements a cache to reduce the number of trainings a grid search has to do. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`NGramsMixin ` | | Overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PermutationReciprocalTransformer ` | | The transform is used to permute targets, predict, then permute the target back before scoring. nan values remain ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PiecewiseClassifier ` | | Uses a :epkg:`decision tree` to split the space of features into buckets and trains a logistic regression (default) ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PiecewiseEstimator ` | | Uses a :epkg:`decision tree` to split the space of features into buckets and trains a linear regression on each of them. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PiecewiseRegressor ` | | Uses a :epkg:`decision tree` to split the space of features into buckets and trains a linear regression (default) on ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PiecewiseTreeRegressor ` | | Implements a kind of piecewise linear regression by modifying the criterion used by the algorithm which builds a decision ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PipelineCache ` | | Same as :epkg:`sklearn:pipeline:Pipeline` but it can skip training if it detects a step was already trained the ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`PredictableTSNE ` | | :epkg:`t-SNE` is an interesting transform which can only be used to study data as there is no way to reproduce the ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`QuantileLinearRegression ` | | Quantile Linear Regression or linear regression trained with norm :epkg:`L1`. This class inherits from :epkg:`sklearn:linear_models:LinearRegression`. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`QuantileMLPRegressor ` | | Quantile MLP Regression or neural networks regression trained with norm :epkg:`L1`. This class inherits from :epkg:`sklearn:neural_networks:MLPRegressor`. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SearchEnginePredictionImages ` | | Extends class :class:`SearchEnginePredictions`. Vectors are coming from images. The metadata must contains information ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SearchEnginePredictions ` | | Extends class :class:`SearchEngineVectors` by looking for neighbors to a vector *X* by looking neighbors to *f(X)* ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SearchEngineVectors ` | | Implements a kind of local search engine which looks for similar results assuming they are vectors. The class is ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SimpleRegressorCriterion ` | | Implements `mean square error `_ criterion in a non efficient ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SimpleRegressorCriterionFast ` | | Criterion which computes the mean square error assuming points falling into one node are approximated by a constant. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBase ` | | Pattern of a *learner* or a *transform* which follows the API of :epkg:`scikit-learn`. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseClassifier ` | | Defines a custom classifier. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseLearner ` | | Pattern of a *learner* qui suit la même API que :epkg:`scikit-learn`. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseRegressor ` | | Defines a custom regressor. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseTransform ` | | Pattern of a *learner* which follows the same API que :epkg:`scikit-learn`. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseTransformLearner ` | | A *transform* which hides a *learner*, it converts method *predict* into *transform*. This way, two learners can ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkBaseTransformStacking ` | | Un *transform* qui cache plusieurs *learners*, arrangés selon la méthode du `stacking `_. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkException ` | | custom exception | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SkLearnParameters ` | | Defines a class to store parameters of a *learner* or a *transform*. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TimeSeriesDifference ` | | Computes timeseries differences. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TimeSeriesDifferenceInv ` | | Computes the reverse of :class:`TimeSeriesDifference`. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TimeSeriesRegressorMixin ` | | Addition to :epkg:`sklearn:base:RegressorMixin`. | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TraceableCountVectorizer ` | | Inherits from :class:`NGramsMixin` which overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TraceableTfidfVectorizer ` | | Inherits from :class:`NGramsMixin` which overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TransferTransformer ` | | Wraps a predictor or a transformer in a transformer. This model is frozen: it cannot be trained and only computes ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TransformedTargetClassifier2 ` | | Meta-estimator to classify on a transformed target. Useful for applying permutation transformation in classification ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TransformedTargetRegressor2 ` | | Meta-estimator to regress on a transformed target. Useful for applying a non-linear transformation in regression ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`_DecisionTreeLogisticRegressionNode ` | | Describes the tree structure hold by class :class:`DecisionTreeLogisticRegression`. See also notebook :ref:`decisiontreelogregrst`. ... | +----------------------------------------------------------------------------------------------------------------------------------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+