hyperimpute.plugins.prediction.classifiers package
- class ClassifierPlugin(random_state: int = 0, **kwargs: Any)
Bases:
ClassifierMixin,BaseEstimator,PredictionPluginBase class for the classifier plugins.
It provides the implementation for plugin.Plugin’s subtype, _fit and _predict methods.
- Each derived class must implement the following methods(inherited from plugin.Plugin):
name() - a static method that returns the name of the plugin. hyperparameter_space() - a static method that returns the hyperparameters that can be tuned during the optimization. The method will return a list of Params derived objects.
If any method implementation is missing, the class constructor will fail.
- _abc_impl = <_abc_data object>
- get_args() dict
- module_relative_path: Optional[Path]
- score(X: DataFrame, y: DataFrame, metric: str = 'aucroc') float
Return the mean accuracy on the given test data and labels.
In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted.
- Parameters:
X (array-like of shape (n_samples, n_features)) – Test samples.
y (array-like of shape (n_samples,) or (n_samples, n_outputs)) – True labels for X.
sample_weight (array-like of shape (n_samples,), default=None) – Sample weights.
- Returns:
score – Mean accuracy of
self.predict(X)wrt. y.- Return type:
float
- static subtype() str
- class Classifiers
Bases:
PluginLoader
Submodules
- hyperimpute.plugins.prediction.classifiers.base module
- hyperimpute.plugins.prediction.classifiers.plugin_catboost module
- hyperimpute.plugins.prediction.classifiers.plugin_kneighbors module
KNeighborsClassifierPluginKNeighborsClassifierPlugin._abc_implKNeighborsClassifierPlugin._fit()KNeighborsClassifierPlugin._predict()KNeighborsClassifierPlugin._predict_proba()KNeighborsClassifierPlugin.algorithmKNeighborsClassifierPlugin.hyperparameter_space()KNeighborsClassifierPlugin.module_relative_pathKNeighborsClassifierPlugin.name()KNeighborsClassifierPlugin.weights
plugin
- hyperimpute.plugins.prediction.classifiers.plugin_logistic_regression module
LogisticRegressionPluginLogisticRegressionPlugin._abc_implLogisticRegressionPlugin._fit()LogisticRegressionPlugin._predict()LogisticRegressionPlugin._predict_proba()LogisticRegressionPlugin.classesLogisticRegressionPlugin.hyperparameter_space()LogisticRegressionPlugin.module_relative_pathLogisticRegressionPlugin.name()LogisticRegressionPlugin.solversLogisticRegressionPlugin.weights
plugin
- hyperimpute.plugins.prediction.classifiers.plugin_neural_nets module
BasicNetBasicNet._backward_hooksBasicNet._buffersBasicNet._check_tensor()BasicNet._forward_hooksBasicNet._forward_pre_hooksBasicNet._is_full_backward_hookBasicNet._load_state_dict_post_hooksBasicNet._load_state_dict_pre_hooksBasicNet._modulesBasicNet._non_persistent_buffers_setBasicNet._parametersBasicNet._state_dict_hooksBasicNet.forward()BasicNet.train()BasicNet.training
NeuralNetsPluginplugin
- hyperimpute.plugins.prediction.classifiers.plugin_random_forest module
- hyperimpute.plugins.prediction.classifiers.plugin_svc module
- hyperimpute.plugins.prediction.classifiers.plugin_xgboost module