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

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

Sources of bias in training data

Selection, sampling, measurement and label bias, leakage, and splitting that keeps tests honest.

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

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

  • A model learns from its data, so missing or skewed groups lead to unfair results.
  • Good data is representative, varied and balanced.
  • Training, validation and test sets are kept apart.
AI Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • Selection

    Cause
    Data is not the whole population
    Remedy
    Collect from missing groups
  • Sampling

    Cause
    Skewed way of drawing rows
    Remedy
    Random or stratified sampling
  • Measurement

    Cause
    Tools record groups unequally
    Remedy
    Fix the tools, validate
  • Label

    Cause
    Annotator or history bias
    Remedy
    Guidelines, several annotators
  • Leakage

    Cause
    Answer or test data in training
    Remedy
    Split first, fit on train only
Five sources of bias and error with a remedy each.

1 / 2

  • Selection

    Cause
    Data is not the whole population
    Remedy
    Collect from missing groups
  • Sampling

    Cause
    Skewed way of drawing rows
    Remedy
    Random or stratified sampling
  • Measurement

    Cause
    Tools record groups unequally
    Remedy
    Fix the tools, validate

2 / 2

  • Label

    Cause
    Annotator or history bias
    Remedy
    Guidelines, several annotators
  • Leakage

    Cause
    Answer or test data in training
    Remedy
    Split first, fit on train only
Five sources of bias and error with a remedy each.
Shuffle
Stratified split
Fit on train only
Evaluate on test
  1. 1Shuffle the rows (not for a time series), then split with the same class mix in each split.
  2. 2Fit scalers and encoders on the training set only.
  3. 3Evaluate once on the untouched test set.
A safe order of steps for splitting and preprocessing.

အဆင့်ဆင့်

  1. 1Shuffle the rows (not for a time series), then split with the same class mix in each split.
  2. 2Fit scalers and encoders on the training set only.
  3. 3Evaluate once on the untouched test set.

A safe order of steps for splitting and preprocessing.

ဘာလဲ

Bias enters at each step. Selection bias: the data comes from a group that is not the whole population, such as only customers who stayed. Sampling bias: the way you draw rows skews the mix, for example only weekday data. Measurement bias: a sensor or form records one group less accurately. Label bias: annotators carry their own assumptions, or labels come from past human decisions that were biased. Remedies: collect or weight data from underrepresented groups, resample, augment, use clear label guidelines with several annotators, and check results per group.

ဘာလဲ

Splitting protects honest evaluation. Shuffle rows before splitting, so an ordered file does not put one class or period in one split. Use stratified splits so train, validation and test keep the same class proportions, which matters most for rare classes. For time series, split by time instead and do not shuffle, so the model never trains on the future.

ဘာလဲ

Data leakage lets information from outside training into the model. Target leakage: a feature contains the answer or is created after the outcome, such as a refund flag in a model that predicts refunds. Train-test contamination: preprocessing fit on all data before splitting, or the same record in train and test. Fit scalers and encoders on training data only, and remove duplicates across splits. Leakage gives great test scores and poor real results.

မှတ်ထားရန်

  • Selection, sampling, measurement and label bias each have a different cause.
  • Shuffle before splitting, except for time series.
  • Stratified splits keep class proportions in every split.
  • Leakage: target leakage and train-test contamination.
  • Fit preprocessing on training data only.

မှတ်ထားရန်

  • Remedies: collect more, reweight, resample, better labels, per-group checks.

စာမေးပွဲမှာ

  • “Test accuracy is far higher than production accuracy” points to data leakage.
  • “A rare class is missing from the validation set” points to stratified splitting.
  • “Only data from customers who stayed” points to selection bias.