AutoGluon

1.5.0 · active · verified Sun Apr 12

AutoGluon is an open-source AutoML library developed by AWS AI, designed for fast and accurate machine learning with minimal code. It automates model selection, hyperparameter tuning, and ensemble creation across various data types, including tabular, time series, and multimodal data. The current version is 1.5.0, with a rapid release cadence, often introducing significant performance improvements, new models, and expanded functionalities.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use AutoGluon's `TabularPredictor` to train a high-accuracy classification model and make predictions on new data with just a few lines of code. It automatically handles feature engineering, model selection, and hyperparameter tuning.

import pandas as pd
from autogluon.tabular import TabularPredictor, TabularDataset

# Load example data (using a public dataset URL)
data_url = 'https://raw.githubusercontent.com/mli/ag-docs/main/knot_theory/'
train_data = TabularDataset(f'{data_url}train.csv')
test_data = TabularDataset(f'{data_url}test.csv')

label = 'signature'
predictor = TabularPredictor(label=label, path='AutogluonModels').fit(train_data, presets='high_quality')
predictions = predictor.predict(test_data)

print("Top 5 predictions:")
print(predictions.head())
print(f"Predictor leaderboards:\n{predictor.leaderboard(test_data, silent=True)}")

view raw JSON →