.. _l-methods: Methods ======= .. contents:: :local: :depth: 1 Summary +++++++ +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | method | class parent | truncated documentation | +=======================================================================================================================+===========================+===============================================================================================================================================+ | :py:meth:`__init__ ` | DBFInMemory | | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | SkBaseLearnerCategory | Stocke les paramètres dans une classe :class:`SkLearnParameters`, elle garde une copie des paramètres pour ... | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | SkCustomKnn | constructor | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | TextVectorizerTransformer | | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | SkBaseLearnerCategory | usual | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_any_predict ` | SkBaseLearnerCategory | Prédit en appelant le modèle associé à chaque catégorie. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_filter_cat ` | SkBaseLearnerCategory | Retoure *X*, *y*, *sample_weight* pour la categorie *c* uniquement. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_get_cat ` | SkBaseLearnerCategory | Retourne les catégories indiquées par *colnameind*. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_iter_records ` | DBFInMemory | | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`decision_function ` | SkBaseLearnerCategory | Output of the model in case of a regressor, matrix with a score for each class and each sample for a classifier | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`decision_function ` | SkCustomKnn | Computes the output of the model in case of a regressor, matrix with a score for each class and each sample ... | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`distance2weight ` | SkCustomKnn | Converts a distance to weight. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`fit ` | SkBaseLearnerCategory | Apprends un modèle pour chaque modalité d'une catégorie. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`fit ` | SkCustomKnn | Train a k-NN model. There is not much to do except storing the training examples. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`fit ` | TextVectorizerTransformer | Trains an estimator on every column. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`get_params ` | SkBaseLearnerCategory | Retourne les paramètres qui définissent l'objet (tous ceux nécessaires pour le cloner). | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`knn_search ` | SkCustomKnn | Finds the *k* nearest neighbors for x. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`predict ` | SkBaseLearnerCategory | Prédit en appelant le modèle associé à chaque catégorie. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`predict ` | SkCustomKnn | Predicts, usually, it calls the :meth:`decision_function ` ... | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`predict_proba ` | SkBaseLearnerCategory | Output of the model in case of a regressor, matrix with a score for each class and each sample for a classifier | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`score ` | SkBaseLearnerCategory | Returns the mean accuracy on the given test data and labels. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`set_params ` | SkBaseLearnerCategory | Change les paramètres qui définissent l'objet (tous ceux nécessaires pour le cloner). | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :meth:`transform ` | TextVectorizerTransformer | Applies the vectorizer on X. | +-----------------------------------------------------------------------------------------------------------------------+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+