rocelib.models.sklearn_models package

Submodules

rocelib.models.sklearn_models.TrainableDecisionTreeModel module

class rocelib.models.sklearn_models.TrainableDecisionTreeModel.TrainableDecisionTreeModel[source]

Bases: TrainableSKLearnModel

A Decision Tree Classifier model wrapper for scikit-learn.

Inherits from TrainableSKLearnModel and initializes a DecisionTreeClassifier as the underlying model.

rocelib.models.sklearn_models.TrainableLogisticRegressionModel module

class rocelib.models.sklearn_models.TrainableLogisticRegressionModel.TrainableLogisticRegressionModel[source]

Bases: TrainableSKLearnModel

A Logistic Regression Classifier model wrapper for scikit-learn.

Inherits from TrainableSKLearnModel and initializes LogisticRegression as the underlying model.

rocelib.models.sklearn_models.TrainableSVMModel module

class rocelib.models.sklearn_models.TrainableSVMModel.TrainableSVMModel[source]

Bases: TrainableSKLearnModel

A SVM model wrapper for scikit-learn.

Inherits from TrainableSKLearnModel and initializes SVC as the underlying model.

rocelib.models.sklearn_models.TrainableSKLearnModel module

class rocelib.models.sklearn_models.TrainableSKLearnModel.TrainableSKLearnModel(model)[source]

Bases: TrainableModel

A base class for scikit-learn models.

This class wraps a scikit-learn model and provides methods for training, predicting, and evaluating the model. Inherits from TrainableModel.

train(X, y, **kwargs)[source]

Trains the scikit-learn model.

@param y: The target variable, should be a DataFrame.

Return type:

TrainedModel

Module contents