ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Combining models

Bagging, boosting, stacking and voting raise accuracy. Pipelines and cascades cut cost.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

  • Bagging

    How
    Parallel models, averaged
    Helps
    Variance
  • Boosting

    How
    Models in sequence
    Helps
    Bias
  • Stacking

    How
    A meta-model combines them
    Helps
    Accuracy
  • Voting

    How
    Majority or average
    Helps
    A simple gain
Four ways to combine models.
Request
Cheap model
Confident?
Answer
Large model or FM
yesno
A cascade sends only hard cases to the big model.

ဘာလဲ

An ensemble combines several models so the group beats any one of them. Bagging trains many models in parallel on random samples of the data and averages them, which cuts variance. Random forest is the classic. Boosting trains models one after another, each correcting the errors of the last, which cuts bias. XGBoost and LightGBM are boosted trees. Stacking trains a meta-model that learns how to combine the predictions of different base models. Voting takes the majority class, or the average, of several models.

ဘာလဲ

Combining also helps with cost and structure. A SageMaker AI inference pipeline chains two to fifteen containers on one endpoint, for example preprocessing, then the model, then postprocessing, so a request flows through all of them in one call. A model cascade runs a cheap model first and sends only low-confidence cases to a larger model or a foundation model, so most traffic stays cheap. Routing goes a step further: a router sends each request to the model that fits it, as Amazon Bedrock intelligent prompt routing does between two models of one family.

ဘာလဲ

The cost of an ensemble is more models to train and serve, with more latency and compute. Use one when the accuracy gain is worth it.

မှတ်ထားရန်

  • Bagging: parallel models on samples, lower variance.
  • Boosting: models in sequence that fix errors, lower bias.
  • Stacking: a meta-model combines the base models.
  • Voting: the majority or the average.
  • Inference pipeline: 2 to 15 containers in sequence behind one endpoint.

မှတ်ထားရန်

  • Cascade: a cheap model first, and a large model or FM only when unsure.

စာမေးပွဲမှာ

  • “Preprocessing and a model in one real-time call” points to an inference pipeline.
  • “Most requests are easy and the FM is costly” points to a cascade or routing.
  • “Reduce the variance of a decision tree” points to bagging, such as a random forest.