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

သဘောတရား

Built-in algorithms: clustering, dimensionality reduction, anomaly

K-Means, PCA, Random Cut Forest and IP Insights: unsupervised algorithms and how to read their output.

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

  • K-Means

    Job
    Group similar rows
    Key setting
    k, the number of clusters
  • PCA

    Job
    Fewer features
    Key setting
    Number of components
  • Random Cut Forest

    Job
    Anomaly score
    Key setting
    Number of trees
  • IP Insights

    Job
    Unusual entity and IP pair
    Key setting
    Vector size
Four unsupervised algorithms.
Sensor readings
Random Cut Forest
Anomaly score
Flag if high
  1. 1Feed readings with no labels.
  2. 2RCF builds trees and scores each point.
  3. 3Flag points far above the average score.
From readings to an anomaly flag.

အဆင့်ဆင့်

  1. 1Feed readings with no labels.
  2. 2RCF builds trees and scores each point.
  3. 3Flag points far above the average score.

From readings to an anomaly flag.

ဘာလဲ

These four learn from data without labels. K-Means groups similar rows into k clusters, such as customer segments. You choose k: train for several values of k, plot the error against k, and pick the “elbow” where more clusters stop helping. PCA (principal component analysis) reduces dimensionality: it keeps the directions with the most variance, so many columns shrink to a few before another model. You set the number of components.

ဘာလဲ

Random Cut Forest (RCF) detects anomalies. It gives each data point an anomaly score: a low score means normal and a high score means unusual. A common rule flags points scoring more than about three standard deviations above the mean score. Use RCF on sensor readings, traffic spikes or any stream. IP Insights learns the normal pairs of an entity (such as a user ID or account) and an IPv4 address, then scores how unusual a new pair is, to spot a login from a strange address.

ဘာလဲ

Input: K-Means, PCA and RCF accept CSV or recordIO-protobuf. IP Insights accepts CSV only, with two columns: entity, then IP address. Most of these train on CPU. RCF does not use GPUs, and IP Insights can use GPUs on large data.

မှတ်ထားရန်

  • K-Means: clusters. Choose k with the elbow method.
  • PCA: fewer columns that keep most of the variance.
  • RCF: an anomaly score per point. High is unusual. About three standard deviations is a common cutoff.
  • IP Insights: unusual entity and IP address pairs.

မှတ်ထားရန်

  • No labels are needed to train. RCF can take labeled test data to measure accuracy.
  • Formats: CSV or recordIO-protobuf. IP Insights is CSV only.

စာမေးပွဲမှာ

  • “Find unusual readings in sensor data without labels” points to Random Cut Forest.
  • “Group customers into segments” points to K-Means.
  • “Reduce 200 features to 20 before training” points to PCA.
  • “Flag a login from an IP address the user never used” points to IP Insights.