Skip to content

About

AutoML Web App - build Machine Learning pipeline in automatic way with Graphical User Interface (GUI). You can run app locally!

Topics

Resources

Stars

179 stars

Watchers

4 watching

Forks

Repository files navigation

MLJAR Studio and AutoML

For an AI-assisted workflow, use MLJAR Studio to prepare and run training while keeping the Python code editable. Start with the AutoML Python tutorial or inspect the employee attrition and fairness walkthrough.

MLJAR AutoML supports tabular classification and regression. The Python package provides four training modes: Explain, Perform, Compete, and Optuna. Reports and explanations depend on the task and configuration; Optuna is not exposed in this repository’s notebook controls.

MLJAR Studio conversation beside an AutoML report

AutoML training and reports in MLJAR Studio.

Example AutoML model leaderboard

Example report from the employee attrition tutorial; results depend on your dataset and training settings.


AutoML Web App

Train machine learning models from a CSV file, inspect the results, and download a model archive for batch predictions. This repository turns three Jupyter notebooks into browser apps with Mercury, using MLJAR AutoML (mljar-supervised) for training.

MLJAR AutoML overview · Python documentation · MLJAR Studio

AutoML Web App demonstration

Watch the demo video.

Included notebooks

Notebook What it does
Train AutoML Upload training data, choose features and a target, select a training mode and algorithms, and download trained models.
Advanced training Configure Golden Features, feature selection, algorithms, stacking, ensembles, cross-validation, and the evaluation metric.
Batch predictions Load a model ZIP archive, upload a CSV of input data, and download predictions.csv.

The training notebooks display an AutoML report and export the experiment directory as a ZIP archive. Depending on the selected settings, AutoML handles preprocessing, model selection, tuning, and explanations.

Run locally

Clone the repository and run the commands from its root directory:

git clone https://github.com/mljar/automl-app.git
cd automl-app
python -m venv .venv

Activate the environment on macOS or Linux:

source .venv/bin/activate

On Windows PowerShell:

.venv\Scripts\Activate.ps1

Install the dependencies and start Mercury:

python -m pip install -r requirements.txt
mercury run

Open the local address printed by Mercury and choose a notebook. Use a Python version supported by the installed packages; see the AutoML installation guide and Mercury documentation.

Train a model

  1. Open Train AutoML or Train AutoML (advanced).
  2. Upload a CSV with column names in the first row.
  3. Select the input features and target column. Exclude the target from the input features.
  4. Choose the algorithms and training time limit, then click Start training.
  5. Review the report and download the ZIP archive from the app output.

The basic notebook offers Explain, Perform, and Compete modes. The advanced notebook uses Compete and exposes additional controls for feature engineering, validation, and model combination.

Advanced AutoML training controls

Make batch predictions

  1. Open Predict with AutoML.
  2. Upload the ZIP archive downloaded after training.
  3. Upload a CSV containing the input features used for training, with matching column names and order.
  4. Inspect the predictions and download predictions.csv.

The prediction notebook reloads the saved experiment and calls automl.predict_all() on the uploaded data.

AutoML batch prediction app

Adjust upload and training limits

Both training notebooks set a 1 MB upload limit. Edit this cell to change it:

data_file = mr.File(label="Upload CSV with training data", max_file_size="1MB")

The training time choices are 60, 120, 240, and 300 seconds. Edit the selector to add a larger budget, for example:

time_limit = mr.Select(
    label="Time limit (seconds)",
    value="300",
    choices=["60", "120", "240", "300", "600", "1200"],
)

Save the notebook and reload the app after changing its controls.

Share a prediction app

The current AutoML package can generate a Mercury prediction app with automl.app(). See the prediction app tutorial for generation and publishing, or self-host Mercury with Docker. MLJAR Platform provides managed hosting.

Generated Mercury app for a single prediction

Generated Mercury app for batch predictions

Prediction app examples from the MLJAR AutoML page, generated with the current AutoML package.

More resources

Community

Report problems or share ideas in GitHub Issues. Follow MLJAR on Twitter, Aleksandra on LinkedIn, or Piotr on LinkedIn.

License

This repository is available under the MIT license. MLJAR Studio and managed hosting have separate plans.

About

AutoML Web App - build Machine Learning pipeline in automatic way with Graphical User Interface (GUI). You can run app locally!

Topics

Resources

Stars

179 stars

Watchers

4 watching

Forks

Used by

Contributors

Languages