autoprognosis.plugins.preprocessors package
- class PreprocessorPlugin
Bases:
PluginBase class for the preprocessing plugins.
It provides the implementation for plugin.Plugin.type() static method.
- 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.Params derived objects. _fit() - internal implementation, called by the fit method. _transform() - internal implementation, called by the transform method.
If any method implementation is missing, the class constructor will fail.
- change_output(output: str) None
- static components_interval(*args: Any, **kwargs: Any) Tuple[int, int]
- fit_predict(X: DataFrame, *args: Any, **kwargs: Any) DataFrame
Fit the model and predict the training data. Used by predictors.
- fit_transform(X: DataFrame, *args: Any, **kwargs: Any) DataFrame
Fit the model and transform the training data. Used by imputers and preprocessors.
- classmethod fqdn() str
The fully-qualified name of the plugin: type->subtype->name
- abstract static hyperparameter_space(*args: Any, **kwargs: Any) List[Params]
The hyperparameter search domain, used for tuning.
- classmethod hyperparameter_space_fqdn(*args: Any, **kwargs: Any) List[Params]
The hyperparameter domain using they fully-qualified name.
- is_fitted() bool
Check if the model was trained
- abstract static name() str
The name of the plugin, e.g.: xgboost
- predict(X: DataFrame, *args: Any, **kwargs: Any) DataFrame
Run predictions for the input. Used by predictors.
- Parameters:
X – pd.DataFrame
- classmethod sample_hyperparameters(trial: optuna.trial.Trial, *args: Any, **kwargs: Any) Dict[str, Any]
Sample hyperparameters for Optuna.
- classmethod sample_hyperparameters_fqdn(trial: optuna.trial.Trial, *args: Any, **kwargs: Any) Dict[str, Any]
Sample hyperparameters using they fully-qualified name.
- classmethod sample_hyperparameters_np(random_state: int = 0, *args: Any, **kwargs: Any) Dict[str, Any]
Sample hyperparameters as a dict.
- abstract save() bytes
Save the plugin to bytes
- abstract static subtype() str
The type of the plugin, e.g.: classifier
- transform(X: DataFrame) DataFrame
Transform the input. Used by imputers and preprocessors.
- Parameters:
X – pd.DataFrame
- static type() str
The type of the plugin, e.g.: prediction
- class Preprocessors(category: str = 'feature_scaling')
Bases:
PluginLoader- add(name: str, cls: Type) PluginLoader
- get(name: str, *args: Any, **kwargs: Any) Any
- get_type(name: str) Type
- list() List[str]
- list_available() List[str]
- reload() PluginLoader
- types() List[Type]
Subpackages
- autoprognosis.plugins.preprocessors.dimensionality_reduction package
- Submodules
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_data_cleanup module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_fast_ica module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_feature_agglomeration module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_gauss_projection module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_nop module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_pca module
- autoprognosis.plugins.preprocessors.dimensionality_reduction.plugin_variance_threshold module
- Submodules
- autoprognosis.plugins.preprocessors.feature_scaling package
- Submodules
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_feature_normalizer module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_maxabs_scaler module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_minmax_scaler module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_nop module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_normal_transform module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_scaler module
- autoprognosis.plugins.preprocessors.feature_scaling.plugin_uniform_transform module
- Submodules
Submodules
- autoprognosis.plugins.preprocessors.base module
PreprocessorPluginPreprocessorPlugin.change_output()PreprocessorPlugin.components_interval()PreprocessorPlugin.fit()PreprocessorPlugin.fit_predict()PreprocessorPlugin.fit_transform()PreprocessorPlugin.fqdn()PreprocessorPlugin.hyperparameter_space()PreprocessorPlugin.hyperparameter_space_fqdn()PreprocessorPlugin.is_fitted()PreprocessorPlugin.load()PreprocessorPlugin.name()PreprocessorPlugin.predict()PreprocessorPlugin.sample_hyperparameters()PreprocessorPlugin.sample_hyperparameters_fqdn()PreprocessorPlugin.sample_hyperparameters_np()PreprocessorPlugin.save()PreprocessorPlugin.subtype()PreprocessorPlugin.transform()PreprocessorPlugin.type()