[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APJPZYPXPN3SP1F9NFFJY8":3,"skill-same:01M7APJPZYPXPN3SP1F9NFFJY8":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7APJPZYPXPN3SP1F9NFFJY8","ml-framing-data-and-classical",null,"Use when starting or scoping an ML project: when not to use ML, framing the problem properly (target, metric, baseline, cost of errors), data splitting and the leakage that follows from getting it wrong, the data problems you'll actually hit (labels, drift, imbalance, duplicates), and the classical toolkit — gradient boosting as the tabular default (XGBoost, LightGBM, CatBoost), linear models, clustering, and the rest of scikit-learn. Includes the router for the whole machine-learning reference.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmachine-learning\u002Fskills\u002Fml-framing-data-and-classical\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ml-framing-data-and-classical\ndescription: \"Use when starting or scoping an ML project: when not to use ML, framing the problem properly (target, metric, baseline, cost of errors), data splitting and the leakage that follows from getting it wrong, the data problems you'll actually hit (labels, drift, imbalance, duplicates), and the classical toolkit — gradient boosting as the tabular default (XGBoost, LightGBM, CatBoost), linear models, clustering, and the rest of scikit-learn. Includes the router for the whole machine-learning reference.\"\n---\n\n# Machine Learning: Framing, Data, and the Classical Toolkit\n\n> **Part 1 of 4** of the *Machine Learning* reference (plugin `machine-learning`), covering §0–§3. Sibling skills: `ml-deep-learning-and-training` (§4–§8), `ml-evaluation-serving-mlops-and-safety` (§9–§14), `ml-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `ml-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — statistics, optimization theory, or a lesson the field has relearned\n>   every few years. Does not expire.\n> - **[VERSIONED]** — framework versions, hardware, library APIs. Moving fast; verify.\n> - **[CONTESTED]** — practitioners genuinely disagree.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that produce a model that looks great offline and\n> fails in production — which is the characteristic failure of this field.\n>\n> **The three framings that organize everything below:**\n> 1. **Your data is the model.** Architecture choices matter far less than data quality,\n>    quantity, and whether your evaluation measures the thing you care about. Most time on\n>    a real project goes to data, and most catastrophic failures originate there (§2).\n> 2. **The default failure mode is a number that lies.** Leakage, distribution shift, a\n>    metric that doesn't match the objective, a test set you tuned against. **A model that\n>    looks too good almost always is** — and finding out why is the core skill.\n> 3. **Almost everything you'll build should not be a neural network.** For tabular data —\n>    which is most business data — gradient-boosted trees remain the strongest default\n>    (§3.1). Reach for deep learning when you have perceptual data, sequences, very large\n>    datasets, or a pretrained model to adapt.\n\n---\n\n## §0. Routing\n\n### 0.1 The question router\n\n| Asked about... | Go to |\n|---|---|\n| Should I use ML at all; framing the problem | §1 |\n| Data: splits, leakage, imbalance, labels | §2 |\n| Classical ML: boosting, linear models, clustering | §3 |\n| Deep learning fundamentals | §4 → `ml-deep-learning-and-training` |\n| Architectures: transformers, CNNs, diffusion | §5 → `ml-deep-learning-and-training` |\n| PyTorch, JAX, the ecosystem, torch.compile | §6 → `ml-deep-learning-and-training` |\n| Training at scale: DDP, FSDP, parallelism, precision | §7 → `ml-deep-learning-and-training` |\n| Fine-tuning, PEFT\u002FLoRA, post-training | §8 → `ml-deep-learning-and-training` |\n| Evaluation and metrics | §9 → `ml-evaluation-serving-mlops-and-safety` |\n| Debugging training | §10 → `ml-evaluation-serving-mlops-and-safety` |\n| Inference, serving, quantization | §11 → `ml-evaluation-serving-mlops-and-safety` |\n| MLOps, reproducibility, monitoring | §12 → `ml-evaluation-serving-mlops-and-safety` |\n| Hardware and cost | §13 → `ml-evaluation-serving-mlops-and-safety` |\n| Interpretability, fairness, safety | §14 → `ml-evaluation-serving-mlops-and-safety` |\n| \"Don't do this\" | §15 → `ml-reference` |\n| \"Which approach is better?\" | §16 → `ml-reference` (contested) |\n| \"Is this still current?\" | §17 → `ml-reference` |\n| Books, courses, people | §18 → `ml-reference` |\n\n---\n\n## §1. Framing\n\n### 1.1 When not to use ML\n\n**[DURABLE] The most valuable ML judgment is recognizing the problems that don't need it.**\nDon't use ML when:\n- **Rules work.** If the logic is expressible in a hundred lines of `if` statements, write\n  them. They're debuggable, auditable, and don't drift.\n- **You don't have data**, or you can't get labels at reasonable cost.\n- **You can't tolerate being wrong** and there's no fallback path.\n- **The relationship you're modeling doesn't exist.** ML finds patterns; it also\n  hallucinates them from noise.\n- **You need a causal answer** and only have observational data. **⚠️ Prediction ≠ causation\n  is the most expensive confusion in applied ML** — a model that predicts churn well tells\n  you nothing about what intervention reduces churn.\n- **Requirements change faster than you can retrain.**\n\n### 1.2 Framing the problem properly\n\n```\nbusiness objective  →  ML task  →  metric  →  data  →  baseline  →  model\n       ↑                                                              |\n       └──────────────── does the metric actually move it? ───────────┘\n```\n\n**[DURABLE] Always build the dumb baseline first**: predict the majority class, predict the\nmean, use last week's value, use a linear model, use the existing heuristic. **If your\nneural network doesn't beat the baseline by a margin that matters, you've learned\nsomething important and cheap.** A shocking number of published and deployed models don't.\n\n**Frame the task honestly**: supervised (classification, regression, ranking), unsupervised\n(clustering, dimensionality reduction, density estimation), self-supervised (the pretraining\nparadigm), reinforcement learning (⚠️ expensive, sample-hungry, hard to debug — often the\nwrong tool for a problem that could be supervised), or **not-ML** (§1.1).\n\n**Define the deployment constraint before you model**: latency budget, throughput,\nmemory, cost per prediction, retraining cadence, explainability requirement, and what\nhappens when the model is wrong. **⚠️ A model that can't meet the latency budget is a\nresearch artifact**, and finding that out at the end is a common and avoidable waste.\n\n---\n\n## §2. Data\n\n**[DURABLE] This is where the time goes and where the failures come from.**\n\n### 2.1 Splitting — and the leakage that follows from getting it wrong\n\n```\ntrain  →  fit parameters\nval    →  select hyperparameters, early stopping, model selection\ntest   →  ONE final estimate. Touch it once.\n```\n\n> **⚠️ GOTCHA — data leakage is the #1 cause of models that look great and fail.** The\n> forms, roughly in order of how often they bite:\n> 1. **Preprocessing before splitting.** Fitting a scaler, imputer, encoder, or feature\n>    selector on the full dataset leaks test statistics into training. **Fit on train,\n>    transform everything.** Use a `Pipeline` so this is structurally impossible.\n> 2. **Temporal leakage.** Random-splitting time-series data lets the model see the future.\n>    **Split by time, always, for anything with a time dimension.**\n> 3. **Group leakage.** The same patient \u002F user \u002F document in both train and test.\n>    **Use grouped splits.**\n> 4. **Target leakage in features.** A feature computed from or after the outcome —\n>    \"number_of_support_tickets\" predicting churn when the tickets came after the cancel\n>    decision. **The classic tell: a feature with suspiciously high importance.**\n> 5. **Duplicate or near-duplicate rows** spanning the split.\n> 6. **Tuning against the test set** across many experiments. This is slow-motion leakage\n>    and it's endemic.\n>\n> **The diagnostic: if your model is much better than you expected, look for leakage\n> before you celebrate.** That instinct is worth more than any technique in this document.\n\n**Cross-validation** when data is scarce: k-fold, stratified k-fold (preserve class\nbalance), **grouped** k-fold, and **time-series split** (expanding or rolling window,\nnever shuffled). **Nested CV** when you're both tuning and estimating performance — most\npeople skip it and consequently report optimistic numbers.\n\n### 2.2 The data problems you'll actually hit\n\n- **Class imbalance** — resampling (SMOTE and friends: ⚠️ often overrated, and it must\n  happen *inside* the CV fold), class weights, threshold tuning (usually the best answer),\n  and **metrics that aren't accuracy** (§9.1 → `ml-evaluation-serving-mlops-and-safety`).\n- **Missing data** — is it MCAR, MAR, or MNAR? **Missingness is often itself a signal**;\n  add an indicator column. Note that gradient-boosting libraries handle missing values\n  natively and well, which is one of several practical reasons they win on tabular data.\n- **Label noise** — usually a bigger accuracy ceiling than your model choice. Audit labels;\n  measure inter-annotator agreement; **the noise floor is your real ceiling**.\n- **Distribution shift** — covariate shift (inputs change), label shift, concept drift\n  (the relationship itself changes). **[DURABLE] This is the main reason deployed models\n  degrade**, and it's why §12.3 → `ml-evaluation-serving-mlops-and-safety` exists.\n- **Feature engineering** still matters enormously outside deep learning. For tabular\n  problems, good features beat model choice **almost every time**.\n\n---\n\n## §3. The Classical Toolkit\n\n### 3.1 Gradient boosting — still the tabular default\n\n**[DURABLE, and it's the most useful practical fact in this document.]** For structured \u002F\ntabular data, **gradient-boosted decision trees remain the strongest default**, and this\nhas survived a decade of attempts to unseat them. The evidence is consistent across\nindependent benchmarks: Shwartz-Ziv & Armon (\"Tabular Data: Deep Learning Is Not All You\nNeed\") found deep models weaker than XGBoost, and that deep models only beat XGBoost when\n*ensembled with* it; Grinsztajn et al. (\"Why do tree-based models still outperform deep\nlearning on tabular data?\") found the same across many datasets.\n\n**Why trees win here [DURABLE]**: tabular features have no spatial or sequential structure\nto exploit, they're heterogeneous in scale and type, trees handle missing values and\ncategoricals natively, they're robust to uninformative features, they need far less tuning,\nand they train fast on CPU. The honest counterweight from the same literature: **trees\ngeneralize less well to diverse unseen data and are less robust to distribution shift than\ndeep models**, and well-regularized MLPs beat GBDTs in some studies (Kadra et al.) — so\nthe literature genuinely conflicts at the margins.\n\n**[VERSIONED] The three libraries**: **XGBoost** (mature categorical support,\nterabyte-scale external-memory training), **LightGBM** (leaf-wise growth, histogram-based\nsplits — fastest and most memory-efficient on large data), and **CatBoost** (best\nout-of-the-box performance, especially with categorical-heavy data, via ordered target\nencoding). Scikit-learn's **HistGradientBoosting** has been identified in comparative work\nas **the most stable across datasets** with good performance and computational efficiency.\n\n**⚠️ The performance gap between the three has narrowed to the point of near-irrelevance.\nFeature engineering and proper tuning matter far more than which one you pick.** Start with\nwhichever you know; switch only for a specific reason (huge data → LightGBM; heavy\ncategoricals → CatBoost).\n\n### 3.2 The rest of the classical toolkit\n\n**Linear\u002Flogistic regression** — still the right answer surprisingly often. Interpretable,\nfast, well-calibrated, and an honest baseline. **Regularization**: L2 (ridge — shrinks),\nL1 (lasso — sparsifies and selects), elastic net.\n**Random forests** — lower ceiling than boosting but nearly tuning-free and hard to\noverfit; a good sanity check.\n**SVMs** — largely superseded, still fine on small high-dimensional data.\n**k-NN** — a genuinely useful baseline, and the conceptual core of retrieval and embeddings.\n**Clustering** — k-means (⚠️ assumes spherical, equal-variance clusters; choosing k is not\na solved problem), DBSCAN\u002FHDBSCAN (density-based, finds arbitrary shapes, handles noise),\nhierarchical, Gaussian mixtures.\n**Dimensionality reduction** — PCA (linear, fast, interpretable variance), UMAP and t-SNE\nfor **visualization only**. **⚠️ Never interpret distances or cluster sizes in a t-SNE or\nUMAP plot as meaningful** — this is one of the most common misreadings in applied ML.\n**Calibration** — Platt scaling, isotonic regression. **[DURABLE] If your downstream\ndecision uses the probability rather than the argmax, you must calibrate**, and most people\ndon't. Boosted trees and neural nets are both typically miscalibrated out of the box.\n","# Machine Learning: Framing, Data, and the Classical Toolkit\n\n> **Part 1 of 4** of the *Machine Learning* reference (plugin `machine-learning`), covering §0–§3. Sibling skills: `ml-deep-learning-and-training` (§4–§8), `ml-evaluation-serving-mlops-and-safety` (§9–§14), `ml-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `ml-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — statistics, optimization theory, or a lesson the field has relearned\n>   every few years. Does not expire.\n> - **[VERSIONED]** — framework versions, hardware, library APIs. Moving fast; verify.\n> - **[CONTESTED]** — practitioners genuinely disagree.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that produce a model that looks great offline and\n> fails in production — which is the characteristic failure of this field.\n>\n> **The three framings that organize everything below:**\n> 1. **Your data is the model.** Architecture choices matter far less than data quality,\n>    quantity, and whether your evaluation measures the thing you care about. Most time on\n>    a real project goes to data, and most catastrophic failures originate there (§2).\n> 2. **The default failure mode is a number that lies.** Leakage, distribution shift, a\n>    metric that doesn't match the objective, a test set you tuned against. **A model that\n>    looks too good almost always is** — and finding out why is the core skill.\n> 3. **Almost everything you'll build should not be a neural network.** For tabular data —\n>    which is most business data — gradient-boosted trees remain the strongest default\n>    (§3.1). Reach for deep learning when you have perceptual data, sequences, very large\n>    datasets, or a pretrained model to adapt.\n\n---\n\n## §0. Routing\n\n### 0.1 The question router\n\n| Asked about... | Go to |\n|---|---|\n| Should I use ML at all; framing the problem | §1 |\n| Data: splits, leakage, imbalance, labels | §2 |\n| Classical ML: boosting, linear models, clustering | §3 |\n| Deep learning fundamentals | §4 → `ml-deep-learning-and-training` |\n| Architectures: transformers, CNNs, diffusion | §5 → `ml-deep-learning-and-training` |\n| PyTorch, JAX, the ecosystem, torch.compile | §6 → `ml-deep-learning-and-training` |\n| Training at scale: DDP, FSDP, parallelism, precision | §7 → `ml-deep-learning-and-training` |\n| Fine-tuning, PEFT\u002FLoRA, post-training | §8 → `ml-deep-learning-and-training` |\n| Evaluation and metrics | §9 → `ml-evaluation-serving-mlops-and-safety` |\n| Debugging training | §10 → `ml-evaluation-serving-mlops-and-safety` |\n| Inference, serving, quantization | §11 → `ml-evaluation-serving-mlops-and-safety` |\n| MLOps, reproducibility, monitoring | §12 → `ml-evaluation-serving-mlops-and-safety` |\n| Hardware and cost | §13 → `ml-evaluation-serving-mlops-and-safety` |\n| Interpretability, fairness, safety | §14 → `ml-evaluation-serving-mlops-and-safety` |\n| \"Don't do this\" | §15 → `ml-reference` |\n| \"Which approach is better?\" | §16 → `ml-reference` (contested) |\n| \"Is this still current?\" | §17 → `ml-reference` |\n| Books, courses, people | §18 → `ml-reference` |\n\n---\n\n## §1. Framing\n\n### 1.1 When not to use ML\n\n**[DURABLE] The most valuable ML judgment is recognizing the problems that don't need it.**\nDon't use ML when:\n- **Rules work.** If the logic is expressible in a hundred lines of `if` statements, write\n  them. They're debuggable, auditable, and don't drift.\n- **You don't have data**, or you can't get labels at reasonable cost.\n- **You can't tolerate being wrong** and there's no fallback path.\n- **The relationship you're modeling doesn't exist.** ML finds patterns; it also\n  hallucinates them from noise.\n- **You need a causal answer** and only have observational data. **⚠️ Prediction ≠ causation\n  is the most expensive confusion in applied ML** — a model that predicts churn well tells\n  you nothing about what intervention reduces churn.\n- **Requirements change faster than you can retrain.**\n\n### 1.2 Framing the problem properly\n\n```\nbusiness objective  →  ML task  →  metric  →  data  →  baseline  →  model\n       ↑                                                              |\n       └──────────────── does the metric actually move it? ───────────┘\n```\n\n**[DURABLE] Always build the dumb baseline first**: predict the majority class, predict the\nmean, use last week's value, use a linear model, use the existing heuristic. **If your\nneural network doesn't beat the baseline by a margin that matters, you've learned\nsomething important and cheap.** A shocking number of published and deployed models don't.\n\n**Frame the task honestly**: supervised (classification, regression, ranking), unsupervised\n(clustering, dimensionality reduction, density estimation), self-supervised (the pretraining\nparadigm), reinforcement learning (⚠️ expensive, sample-hungry, hard to debug — often the\nwrong tool for a problem that could be supervised), or **not-ML** (§1.1).\n\n**Define the deployment constraint before you model**: latency budget, throughput,\nmemory, cost per prediction, retraining cadence, explainability requirement, and what\nhappens when the model is wrong. **⚠️ A model that can't meet the latency budget is a\nresearch artifact**, and finding that out at the end is a common and avoidable waste.\n\n---\n\n## §2. Data\n\n**[DURABLE] This is where the time goes and where the failures come from.**\n\n### 2.1 Splitting — and the leakage that follows from getting it wrong\n\n```\ntrain  →  fit parameters\nval    →  select hyperparameters, early stopping, model selection\ntest   →  ONE final estimate. Touch it once.\n```\n\n> **⚠️ GOTCHA — data leakage is the #1 cause of models that look great and fail.** The\n> forms, roughly in order of how often they bite:\n> 1. **Preprocessing before splitting.** Fitting a scaler, imputer, encoder, or feature\n>    selector on the full dataset leaks test statistics into training. **Fit on train,\n>    transform everything.** Use a `Pipeline` so this is structurally impossible.\n> 2. **Temporal leakage.** Random-splitting time-series data lets the model see the future.\n>    **Split by time, always, for anything with a time dimension.**\n> 3. **Group leakage.** The same patient \u002F user \u002F document in both train and test.\n>    **Use grouped splits.**\n> 4. **Target leakage in features.** A feature computed from or after the outcome —\n>    \"number_of_support_tickets\" predicting churn when the tickets came after the cancel\n>    decision. **The classic tell: a feature with suspiciously high importance.**\n> 5. **Duplicate or near-duplicate rows** spanning the split.\n> 6. **Tuning against the test set** across many experiments. This is slow-motion leakage\n>    and it's endemic.\n>\n> **The diagnostic: if your model is much better than you expected, look for leakage\n> before you celebrate.** That instinct is worth more than any technique in this document.\n\n**Cross-validation** when data is scarce: k-fold, stratified k-fold (preserve class\nbalance), **grouped** k-fold, and **time-series split** (expanding or rolling window,\nnever shuffled). **Nested CV** when you're both tuning and estimating performance — most\npeople skip it and consequently report optimistic numbers.\n\n### 2.2 The data problems you'll actually hit\n\n- **Class imbalance** — resampling (SMOTE and friends: ⚠️ often overrated, and it must\n  happen *inside* the CV fold), class weights, threshold tuning (usually the best answer),\n  and **metrics that aren't accuracy** (§9.1 → `ml-evaluation-serving-mlops-and-safety`).\n- **Missing data** — is it MCAR, MAR, or MNAR? **Missingness is often itself a signal**;\n  add an indicator column. Note that gradient-boosting libraries handle missing values\n  natively and well, which is one of several practical reasons they win on tabular data.\n- **Label noise** — usually a bigger accuracy ceiling than your model choice. Audit labels;\n  measure inter-annotator agreement; **the noise floor is your real ceiling**.\n- **Distribution shift** — covariate shift (inputs change), label shift, concept drift\n  (the relationship itself changes). **[DURABLE] This is the main reason deployed models\n  degrade**, and it's why §12.3 → `ml-evaluation-serving-mlops-and-safety` exists.\n- **Feature engineering** still matters enormously outside deep learning. For tabular\n  problems, good features beat model choice **almost every time**.\n\n---\n\n## §3. The Classical Toolkit\n\n### 3.1 Gradient boosting — still the tabular default\n\n**[DURABLE, and it's the most useful practical fact in this document.]** For structured \u002F\ntabular data, **gradient-boosted decision trees remain the strongest default**, and this\nhas survived a decade of attempts to unseat them. The evidence is consistent across\nindependent benchmarks: Shwartz-Ziv & Armon (\"Tabular Data: Deep Learning Is Not All You\nNeed\") found deep models weaker than XGBoost, and that deep models only beat XGBoost when\n*ensembled with* it; Grinsztajn et al. (\"Why do tree-based models still outperform deep\nlearning on tabular data?\") found the same across many datasets.\n\n**Why trees win here [DURABLE]**: tabular features have no spatial or sequential structure\nto exploit, they're heterogeneous in scale and type, trees handle missing values and\ncategoricals natively, they're robust to uninformative features, they need far less tuning,\nand they train fast on CPU. The honest counterweight from the same literature: **trees\ngeneralize less well to diverse unseen data and are less robust to distribution shift than\ndeep models**, and well-regularized MLPs beat GBDTs in some studies (Kadra et al.) — so\nthe literature genuinely conflicts at the margins.\n\n**[VERSIONED] The three libraries**: **XGBoost** (mature categorical support,\nterabyte-scale external-memory training), **LightGBM** (leaf-wise growth, histogram-based\nsplits — fastest and most memory-efficient on large data), and **CatBoost** (best\nout-of-the-box performance, especially with categorical-heavy data, via ordered target\nencoding). Scikit-learn's **HistGradientBoosting** has been identified in comparative work\nas **the most stable across datasets** with good performance and computational efficiency.\n\n**⚠️ The performance gap between the three has narrowed to the point of near-irrelevance.\nFeature engineering and proper tuning matter far more than which one you pick.** Start with\nwhichever you know; switch only for a specific reason (huge data → LightGBM; heavy\ncategoricals → CatBoost).\n\n### 3.2 The rest of the classical toolkit\n\n**Linear\u002Flogistic regression** — still the right answer surprisingly often. Interpretable,\nfast, well-calibrated, and an honest baseline. **Regularization**: L2 (ridge — shrinks),\nL1 (lasso — sparsifies and selects), elastic net.\n**Random forests** — lower ceiling than boosting but nearly tuning-free and hard to\noverfit; a good sanity check.\n**SVMs** — largely superseded, still fine on small high-dimensional data.\n**k-NN** — a genuinely useful baseline, and the conceptual core of retrieval and embeddings.\n**Clustering** — k-means (⚠️ assumes spherical, equal-variance clusters; choosing k is not\na solved problem), DBSCAN\u002FHDBSCAN (density-based, finds arbitrary shapes, handles noise),\nhierarchical, Gaussian mixtures.\n**Dimensionality reduction** — PCA (linear, fast, interpretable variance), UMAP and t-SNE\nfor **visualization only**. **⚠️ Never interpret distances or cluster sizes in a t-SNE or\nUMAP plot as meaningful** — this is one of the most common misreadings in applied ML.\n**Calibration** — Platt scaling, isotonic regression. **[DURABLE] If your downstream\ndecision uses the probability rather than the argmax, you must calibrate**, and most people\ndon't. Boosted trees and neural nets are both typically miscalibrated out of the box.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmachine-learning\u002Fskills\u002Fml-framing-data-and-classical",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill ml-framing-data-and-classical",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill ml-framing-data-and-classical",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill ml-framing-data-and-classical","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fmachine-learning\u002Fskills\u002Fml-framing-data-and-classical\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]