Concept
Built-in algorithms for tabular data
Eight SageMaker AI algorithms for tables: what each fits, its input format and its key settings.
Linear Learner
- Fits
- Linear regression or classification
- Input
- recordIO or CSV
XGBoost
- Fits
- Boosted trees, strong default
- Input
- CSV, LibSVM, Parquet
LightGBM
- Fits
- Boosted trees, fast on large data
- Input
- CSV
CatBoost
- Fits
- Boosted trees, categorical data
- Input
- CSV
k-NN
- Fits
- Nearest neighbors
- Input
- recordIO or CSV
Factorization Machines
- Fits
- Sparse interactions
- Input
- recordIO only
AutoGluon-Tabular
- Fits
- Stacked ensemble
- Input
- CSV
TabTransformer
- Fits
- Transformer on tables
- Input
- CSV
| Algorithm | Fits | Input |
|---|---|---|
| Linear Learner | Linear regression or classification | recordIO or CSV |
| XGBoost | Boosted trees, strong default | CSV, LibSVM, Parquet |
| LightGBM | Boosted trees, fast on large data | CSV |
| CatBoost | Boosted trees, categorical data | CSV |
| k-NN | Nearest neighbors | recordIO or CSV |
| Factorization Machines | Sparse interactions | recordIO only |
| AutoGluon-Tabular | Stacked ensemble | CSV |
| TabTransformer | Transformer on tables | CSV |
1 / 3
Linear Learner
- Fits
- Linear regression or classification
- Input
- recordIO or CSV
XGBoost
- Fits
- Boosted trees, strong default
- Input
- CSV, LibSVM, Parquet
LightGBM
- Fits
- Boosted trees, fast on large data
- Input
- CSV
| Algorithm | Fits | Input |
|---|---|---|
| Linear Learner | Linear regression or classification | recordIO or CSV |
| XGBoost | Boosted trees, strong default | CSV, LibSVM, Parquet |
| LightGBM | Boosted trees, fast on large data | CSV |
2 / 3
CatBoost
- Fits
- Boosted trees, categorical data
- Input
- CSV
k-NN
- Fits
- Nearest neighbors
- Input
- recordIO or CSV
Factorization Machines
- Fits
- Sparse interactions
- Input
- recordIO only
| Algorithm | Fits | Input |
|---|---|---|
| CatBoost | Boosted trees, categorical data | CSV |
| k-NN | Nearest neighbors | recordIO or CSV |
| Factorization Machines | Sparse interactions | recordIO only |
3 / 3
AutoGluon-Tabular
- Fits
- Stacked ensemble
- Input
- CSV
TabTransformer
- Fits
- Transformer on tables
- Input
- CSV
| Algorithm | Fits | Input |
|---|---|---|
| AutoGluon-Tabular | Stacked ensemble | CSV |
| TabTransformer | Transformer on tables | CSV |
What it is
SageMaker AI built-in algorithms are ready-made containers. You give training data in Amazon S3 and set hyperparameters, and you write no training code. For tabular data there are eight.
What it is
Linear Learner fits linear regression and classification, handles large data and is easy to explain. XGBoost is gradient-boosted trees, a strong default for tables. LightGBM and CatBoost are also gradient-boosted trees: CatBoost handles categorical columns well, and LightGBM is built for speed on large data. k-NN (k-nearest neighbors) predicts from the closest labeled examples. Factorization Machines models interactions in sparse data, such as click prediction and recommendations. AutoGluon-Tabular ensembles and stacks many models for you. TabTransformer applies a transformer network to tables.
What it is
Input formats differ. Linear Learner and k-NN take recordIO-protobuf or CSV. XGBoost takes CSV, LibSVM or Parquet. Factorization Machines needs recordIO-protobuf, so CSV does not work. LightGBM, CatBoost, AutoGluon-Tabular and TabTransformer take CSV and train on a single instance. Instances: Linear Learner and k-NN run on CPU or GPU; XGBoost uses CPU by default. From version 1.2-2 it can also train on GPU: pick a GPU instance such as G4dn and set tree_method to gpu_hist. Some older summary tables say GPU for 1.2-1 only, so watch for that wording. Factorization Machines uses CPU (GPU for dense data); LightGBM and CatBoost use CPU; AutoGluon-Tabular and TabTransformer can use GPU.
Remember
- Linear Learner: simple, scalable, explainable. XGBoost: a strong default.
- LightGBM: speed on large data. CatBoost: categorical features.
- k-NN: closest examples. Factorization Machines: sparse interactions such as recommendations.
- AutoGluon-Tabular: stacks many models. TabTransformer: a transformer on tables.
Remember
- Factorization Machines needs recordIO-protobuf, not CSV.
- Key hyperparameters: XGBoost num_round, max_depth and eta. Linear Learner predictor_type. k-NN k.
On the exam
- “Click prediction on very sparse data” points to Factorization Machines.
- “Tabular classification with many categorical columns” points to CatBoost.
- “A simple, explainable model on a very large table” points to Linear Learner.
In this task · 2.2
- Built-in algorithms for tabular data
- Built-in algorithms: clustering, dimensionality reduction, anomaly
- Built-in algorithms: text, sequence and forecasting
- Built-in algorithms: image and video
- Training jobs, script mode and ML libraries
SageMaker AMT
- Reducing training time
- Distributed training and HyperPod
- Overfitting, underfitting and catastrophic forgetting
- Combining models
- Epochs, steps, batch size and learning rate
- Task-specific prompt engineering
- Fine-tuning and continued pre-training in Bedrock
- PEFT, LoRA and fine-tuning on SageMaker
- Model distillation
- Optimizing retrieval and embedding models