{"id":4444,"library":"autogluon-tabular","title":"AutoGluon Tabular","description":"AutoGluon Tabular provides a fast and accurate AutoML library specifically designed for tabular data, allowing users to train and deploy high-accuracy machine learning models with just a few lines of code. Developed by AWS AI, it offers automated stack ensembling, deep learning integration, and handles feature engineering and hyperparameter tuning automatically. The library maintains an active release cadence with major updates every few months and intermediate patch releases.","status":"active","version":"1.5.0","language":"en","source_language":"en","source_url":"https://github.com/autogluon/autogluon/","tags":["machine-learning","automl","tabular-data","prediction","aws"],"install":[{"cmd":"pip install autogluon.tabular[all]","lang":"bash","label":"Full installation with common ML dependencies"},{"cmd":"pip install autogluon.tabular","lang":"bash","label":"Minimal (skeleton) installation"}],"dependencies":[{"reason":"Supported versions for autogluon-tabular are >=3.10 and <3.14. Support for Python 3.13 is experimental on Windows.","package":"Python","optional":false},{"reason":"Included with `[all]` extra for enhanced model performance.","package":"lightgbm","optional":true},{"reason":"Included with `[all]` extra for enhanced model performance.","package":"catboost","optional":true},{"reason":"Included with `[all]` extra for enhanced model performance.","package":"xgboost","optional":true},{"reason":"Included with `[all]` extra for enhanced model performance.","package":"fastai","optional":true},{"reason":"Included with `[all]` extra for distributed computing.","package":"ray","optional":true},{"reason":"Required for TabPFN models like `REALTABPFN-V2`, `REALTABPFN-V2.5`. Install via `[all,tabpfn]`.","package":"tabpfn","optional":true},{"reason":"Experimental dependency to speed up KNN models. Install via `[all,skex]`.","package":"skex","optional":true}],"imports":[{"symbol":"TabularPredictor","correct":"from autogluon.tabular import TabularPredictor"},{"symbol":"TabularDataset","correct":"from autogluon.tabular import TabularDataset"}],"quickstart":{"code":"import pandas as pd\nfrom autogluon.tabular import TabularPredictor, TabularDataset\n\n# Create dummy dataframes if not using S3 URLs for demonstration\ntrain_data = pd.DataFrame({\n    'feature_1': [1, 2, 3, 4, 5],\n    'feature_2': ['A', 'B', 'A', 'C', 'B'],\n    'target_column': [0, 1, 0, 1, 0]\n})\ntest_data = pd.DataFrame({\n    'feature_1': [6, 7],\n    'feature_2': ['C', 'A']\n})\n\n# Or load directly from AutoGluon's S3 bucket (uncomment for real usage)\n# data_root = 'https://autogluon.s3.amazonaws.com/datasets/Inc/'\n# train_data = TabularDataset(data_root + 'train.csv')\n# test_data = TabularDataset(data_root + 'test.csv')\n\n# Initialize and train the predictor\npredictor = TabularPredictor(label='target_column', path='./AutogluonModels').fit(train_data, presets='best')\n\n# Make predictions\npredictions = predictor.predict(test_data)\nprint(\"Predictions:\\n\", predictions)\n\n# Evaluate the model (requires a label column in test_data, not present in dummy test_data)\n# Assuming test_data_with_labels exists:\n# test_data_with_labels = pd.DataFrame({\n#     'feature_1': [6, 7],\n#     'feature_2': ['C', 'A'],\n#     'target_column': [1, 0]\n# })\n# leaderboards = predictor.leaderboard(test_data_with_labels, silent=True)\n# print(\"Leaderboard:\\n\", leaderboards)\n","lang":"python","description":"This quickstart demonstrates how to train a `TabularPredictor` on a dataset and then make predictions. It uses a dummy DataFrame for immediate execution, with commented-out lines showing how to load data from AutoGluon's public S3 bucket for a more realistic scenario. The `presets='best'` option instructs AutoGluon to use its best-performing configuration."},"warnings":[{"fix":"Re-train all AutoGluon models after upgrading the `autogluon-tabular` library.","message":"Models trained with an older version of AutoGluon are NOT compatible with newer versions. Users must re-train models after upgrading the library.","severity":"breaking","affected_versions":"All versions, notably v0.8.2 and v1.5.0 releases explicitly warn about this."},{"fix":"Update method calls to their new names (e.g., `predictor.persist()` instead of `predictor.persist_models()`). Refer to the v1.3.0 release notes or documentation for a full list of renames.","message":"Several `TabularPredictor` methods were renamed in v1.3.0. For example, `persist_models` became `persist`, and `get_model_names` became `model_names`.","severity":"breaking","affected_versions":"v1.3.0 and later (deprecated in v1.0.0, raised errors in v1.2.0, removed in v1.3.0)."},{"fix":"Ensure your Python environment uses a supported version (3.10-3.13 for v1.5.0). Check release notes for specific version compatibility.","message":"Python version support changes: AutoGluon dropped support for Python 3.8 in v1.2.0, while adding support for 3.12. Current versions (1.5.0) support Python 3.10-3.13, with experimental support for 3.13 on Windows.","severity":"gotcha","affected_versions":"v1.2.0 onwards for Python 3.8 drop; v1.5.0 for 3.10-3.13 support."},{"fix":"Update your model hyperparameters to use 'REALTABPFN-V2' if you were using 'TABPFNV2'. For 'REALTABPFN-V2.5', ensure you understand the licensing and perform the required HuggingFace authentication. Note that 'REALTABPFN-V2.5' is not included in default presets.","message":"If using 'TABPFNV2' model, it is strongly recommended to switch to 'REALTABPFN-V2' due to breaking changes in the underlying TabPFN library. 'REALTABPFN-V2.5' also exists but has a non-commercial license and requires HuggingFace authentication.","severity":"gotcha","affected_versions":"v1.5.0 onwards, specific to TabPFN model usage."}],"env_vars":null,"last_verified":"2026-04-12T00:00:00.000Z","next_check":"2026-07-11T00:00:00.000Z"}