ml_grid.model_classes.TPOTClassifierWrapper

TPOT Classifier Wrapper.

This module provides a scikit-learn compatible wrapper for TPOTClassifier.

Attributes

TPOTClassifier

logger

Classes

TPOTClassifierWrapper

A scikit-learn compatible wrapper for TPOTClassifier.

Module Contents

ml_grid.model_classes.TPOTClassifierWrapper.TPOTClassifier = None[source]
ml_grid.model_classes.TPOTClassifierWrapper.logger[source]
class ml_grid.model_classes.TPOTClassifierWrapper.TPOTClassifierWrapper(generations: int = 5, population_size: int = 20, offspring_size: int | None = None, mutation_rate: float = 0.9, crossover_rate: float = 0.1, scoring: str = 'accuracy', cv: int = 5, subsample: float = 1.0, n_jobs: int = -1, max_time_mins: int | None = None, max_eval_time_mins: float = 5, random_state: int = 42, verbosity: int = 2, early_stop: int | None = None)[source]

Bases: sklearn.base.BaseEstimator, sklearn.base.ClassifierMixin

A scikit-learn compatible wrapper for TPOTClassifier.

generations = 5[source]
population_size = 20[source]
offspring_size = None[source]
mutation_rate = 0.9[source]
crossover_rate = 0.1[source]
scoring = 'accuracy'[source]
cv = 5[source]
subsample = 1.0[source]
n_jobs = -1[source]
max_time_mins = None[source]
max_eval_time_mins = 5[source]
random_state = 42[source]
verbosity = 2[source]
early_stop = None[source]
model_ = None[source]
fit(X: numpy.ndarray | pandas.DataFrame, y: numpy.ndarray | pandas.Series, **kwargs) TPOTClassifierWrapper[source]
predict(X: numpy.ndarray | pandas.DataFrame) numpy.ndarray[source]
predict_proba(X: numpy.ndarray | pandas.DataFrame) numpy.ndarray[source]