hyperimpute.plugins.prediction.classifiers package
- class ClassifierPlugin(random_state: int = 0, **kwargs: Any)
Bases:
ClassifierMixin
,BaseEstimator
,PredictionPlugin
Base 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
KNeighborsClassifierPlugin
KNeighborsClassifierPlugin._abc_impl
KNeighborsClassifierPlugin._fit()
KNeighborsClassifierPlugin._predict()
KNeighborsClassifierPlugin._predict_proba()
KNeighborsClassifierPlugin.algorithm
KNeighborsClassifierPlugin.hyperparameter_space()
KNeighborsClassifierPlugin.module_relative_path
KNeighborsClassifierPlugin.name()
KNeighborsClassifierPlugin.weights
plugin
- hyperimpute.plugins.prediction.classifiers.plugin_logistic_regression module
LogisticRegressionPlugin
LogisticRegressionPlugin._abc_impl
LogisticRegressionPlugin._fit()
LogisticRegressionPlugin._predict()
LogisticRegressionPlugin._predict_proba()
LogisticRegressionPlugin.classes
LogisticRegressionPlugin.hyperparameter_space()
LogisticRegressionPlugin.module_relative_path
LogisticRegressionPlugin.name()
LogisticRegressionPlugin.solvers
LogisticRegressionPlugin.weights
plugin
- hyperimpute.plugins.prediction.classifiers.plugin_neural_nets module
BasicNet
BasicNet._backward_hooks
BasicNet._buffers
BasicNet._check_tensor()
BasicNet._forward_hooks
BasicNet._forward_pre_hooks
BasicNet._is_full_backward_hook
BasicNet._load_state_dict_post_hooks
BasicNet._load_state_dict_pre_hooks
BasicNet._modules
BasicNet._non_persistent_buffers_set
BasicNet._parameters
BasicNet._state_dict_hooks
BasicNet.forward()
BasicNet.train()
BasicNet.training
NeuralNetsPlugin
plugin
- hyperimpute.plugins.prediction.classifiers.plugin_random_forest module
- hyperimpute.plugins.prediction.classifiers.plugin_svc module
- hyperimpute.plugins.prediction.classifiers.plugin_xgboost module