ladderlore
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · AIF-C01 အပေါ် ဆက်လေ့လာရန်

Selecting ML models and algorithms

Match the problem type to an algorithm family, then weigh interpretability, accuracy, speed and data size.

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

AI Practitioner မှ သင်သိပြီးသားများ

  • Regression predicts a number, classification a category, clustering finds groups.
  • Forecasting predicts values over time. Recommendation learns from user behavior.
  • Supervised learning needs labels. Clustering does not.
AI Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • Tabular prediction

    Algorithm family
    Linear models, trees, boosting
    Note
    Linear is easiest to explain
  • Clustering

    Algorithm family
    K-means
    Note
    You choose k
  • Anomaly detection

    Algorithm family
    Random Cut Forest
    Note
    Scores each point
  • Forecasting

    Algorithm family
    DeepAR, statistical models
    Note
    Time series input
  • Recommendation

    Algorithm family
    Factorization machines
    Note
    Sparse user and item data
  • Images

    Algorithm family
    CNN
    Note
    Train on GPU
  • Text and sequences

    Algorithm family
    Transformer
    Note
    Pre-trained models save effort
Problem types and the algorithm family that fits.

1 / 3

  • Tabular prediction

    Algorithm family
    Linear models, trees, boosting
    Note
    Linear is easiest to explain
  • Clustering

    Algorithm family
    K-means
    Note
    You choose k
  • Anomaly detection

    Algorithm family
    Random Cut Forest
    Note
    Scores each point

2 / 3

  • Forecasting

    Algorithm family
    DeepAR, statistical models
    Note
    Time series input
  • Recommendation

    Algorithm family
    Factorization machines
    Note
    Sparse user and item data
  • Images

    Algorithm family
    CNN
    Note
    Train on GPU

3 / 3

  • Text and sequences

    Algorithm family
    Transformer
    Note
    Pre-trained models save effort
Problem types and the algorithm family that fits.
  • ReLU

    Default in hidden layers. Fast, and gradients do not vanish easily.

  • Sigmoid

    Squeezes a value into 0 to 1. Yes or no output.

  • Softmax

    Turns scores into probabilities that add up to 1. One of many classes.

  • Tanh

    Squeezes a value into -1 to 1. An older hidden-layer choice.

Four activation functions and where they sit.

ဘာလဲ

Start from the problem type, then pick a family. For tabular regression and classification, linear models and single decision trees are simple and easy to explain. Gradient boosting (XGBoost, LightGBM) and deep networks usually score higher but are harder to explain. Clustering uses k-means. Anomaly detection uses Random Cut Forest. Forecasting uses DeepAR or classic statistical models. Recommendation uses factorization machines or Amazon Personalize.

ဘာလဲ

Deep learning fits unstructured data. A convolutional neural network (CNN) reads images. A recurrent neural network (RNN) reads a sequence one step at a time, which is slow on long text. A transformer uses attention to read all tokens together, trains in parallel, and powers language models and many modern vision models. A neural network needs more data and compute than a tree model, so on a small table a boosted tree often wins.

Four limits steer the choice: explainability (a regulator wants reasons), latency (a linear or tree model answers fast, a large network may not), the amount of data (deep networks need a lot), and the cost to train and serve.

မှတ်ထားရန်

  • Must explain each decision: linear model or single decision tree.
  • Need top accuracy on a table: gradient boosting such as XGBoost.
  • Images: CNN. Language and long sequences: transformer. RNNs are older and slower to train.
  • Small data set: a simple model or transfer learning, not a deep network from scratch.
  • Tight latency or small budget: a simpler model.

မှတ်ထားရန်

  • Activation functions: ReLU in hidden layers, sigmoid for a yes or no output, softmax for one of many classes.

စာမေးပွဲမှာ

  • “A loan model must give reasons a customer can read” points to a linear model or decision tree.
  • “Classify photos” points to a convolutional neural network.
  • “Output a probability for each of ten classes” points to a softmax output layer.