mboukabous's picture
Add application file
7c045bd

A newer version of the Gradio SDK is available: 6.5.1

Upgrade

Classification Models

This directory contains Python scripts that define various classification models and their associated hyperparameter grids. Each model file sets up a scikit-learn-compatible estimator and defines a parameter grid for use with the train_classification_model.py script.

These model definition files:

  • Specify an estimator (e.g., LogisticRegression(), RandomForestClassifier(), XGBClassifier()).
  • Define a param_grid dict for hyperparameter tuning using GridSearchCV.
  • Optionally provide a default_scoring metric (e.g., accuracy).
  • Work for both binary and multi-class classification tasks.
  • Are intended to be flexible and modular, allowing easy swapping of models without changing other parts of the code.

Note: Preprocessing steps, hyperparameter tuning logic, and label encoding for categorical targets are handled externally by the scripts and utilities.

Available Classification Models

To train any of these models, specify the --model_module argument with the appropriate model name (e.g., logistic_regression) when running train_classification_model.py.