ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念

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, task and input format.

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

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

3 / 3

  • AutoGluon-Tabular

    Fits
    Stacked ensemble
    Input
    CSV
  • TabTransformer

    Fits
    Transformer on tables
    Input
    CSV
Algorithm, task and input format.
Need a simple, explainable model?
Linear Learner
Sparse data, interactions?
Factorization Machines
Many categorical columns?
CatBoost
XGBoost or LightGBM
yesnoyesnoyesno
A short path to a tabular algorithm.

是什么

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.

是什么

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.

是什么

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.

要记住

  • 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.

要记住

  • Factorization Machines needs recordIO-protobuf, not CSV.
  • Key hyperparameters: XGBoost num_round, max_depth and eta. Linear Learner predictor_type. k-NN k.

考试中

  • “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.