BaseModel
- class BaseModel(x: Panel, y: Panel, model_type: str = None, loss: str = None, optimizer: str = None, metrics: list[str] = None, last_activation: str = None)[source]
Bases:
object
Base class for panel models.
Methods Summary
build
()Build the model.
compile
(**kwargs)Compile the model.
fit
(**kwargs)Fit the model.
get_auc
()Get the AUC score.
predict
([data])Predict.
predict_proba
([data])Predict probabilities.
Residuals.
score
([on])Score the model.
Set the arrays.
Methods Documentation
- compile(**kwargs) None [source]
Compile the model.
- Parameters
**kwargs – Additional arguments to pass to the compile method.
- fit(**kwargs) None [source]
Fit the model.
- Parameters
**kwargs – Additional arguments to pass to the fit method.
- predict(data: Optional[Panel] = None, **kwargs) Panel [source]
Predict.
- Parameters
data (
Panel
) – Panel of data to predict.**kwargs – Additional arguments to pass to the predict method.
- Returns
Panel
of predicted values.
- predict_proba(data: Optional[Panel] = None, **kwargs) Panel [source]
Predict probabilities.
- Parameters
data (
Panel
) – Panel of data to predict.**kwargs – Additional arguments to pass to the predict method.
- Returns
Panel of predicted probabilities.