AI GLOSSARY · AI CONCEPTS

Machine learning algorithm

Markdown version

Definition

A machine learning algorithm is a procedure for deriving a model or data-dependent behavior from training data. Methods can fit parameters, build structures or retain examples; repeated error-minimizing parameter updates are one approach, not the definition.

Also called: ML algorithm, ML algorithms, types of machine learning algorithms.

In plain language

A machine learning algorithm is the method a computer uses to learn. Think of a recipe for learning rather than the dish. For spam filtering, one algorithm might look at many labelled emails, measure how often its guesses are wrong, and adjust itself again and again until it is mostly right. Different algorithms suit different jobs. What comes out is a trained model, which is a separate thing. An algorithm does nothing useful until it is run on data, and a method that works well on one kind of data may work poorly on another, so the choice has to be tested.

Technical definition

Learning algorithms derive a model or data-dependent behavior from training examples. Some iteratively optimize parameters against a loss; other procedures differ. Scikit-learn's nearest-neighbor classifier stores training instances and predicts from nearby examples, so fitting is not always repeated parameter-error minimization. IBM describes a prediction-error adjustment loop, and MIT Sloan identifies neural networks as one class of machine learning algorithms. The procedure is distinct from the fitted result. Use validation data or cross-validation to select candidates and settings, then use a separate held-out test set for final evaluation; repeated selection on that test set leaks information.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A JSON report on train, validation and test files covering duplicates, shared groups, and time or label leakage.
    Why it exercises the concept
    Whatever algorithm is used, it learns from the training file. This check helps make sure the held-out files do not leak into it.
  2. Skill by Hugging Face · Illustrative, not executed

    huggingface-datasets 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Metadata, rows, search and filters for Hugging Face datasets, read through the Dataset Viewer API.
    Why it exercises the concept
    A learning algorithm works on data. This skill lets an agent look at the rows an algorithm would be given before any training is run.
  3. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    An eval dataset for an LLM feature, validated for duplicates, missing graders, imbalance and leakage.
    Why it exercises the concept
    Comparing two algorithms or models needs the same test data. This checker validates case structure and selected duplicate/leakage signals, not answer truth, model outputs or overall fairness. Using the same cases helps comparison but does not by itself make it reliable.

How it shows up when you use agents

You do not choose a learning algorithm when you use Claude Code, Codex or Cursor, because the model was trained before you got it. The algorithm matters when an agent helps with a data task: asked to "build a classifier", it picks an algorithm, trains it on your data and hands back a model. Ask which algorithm it chose and why.

What breaks when this is misunderstood: people treat the algorithm name as a quality guarantee. The result depends on the data and on how it was split and tested. Test leakage can inflate results. The split leakage check skill flags selected file-based signals, not every leakage pathway. Select candidates on validation data or cross-validation, then reserve the final test for final evaluation.

The trained result is covered in Machine learning model. For the learning styles, see Supervised learning and Unsupervised learning.

Common confusions

  • Algorithm versus model. The algorithm is the procedure and the model is what it produces. Running one algorithm on different data gives different models. See Machine learning model.
  • Learning algorithm versus any algorithm. A sorting routine is an algorithm but does not learn from data. A machine learning algorithm derives data-dependent behavior from examples; this can include retaining examples rather than adjusting numeric parameters.
  • Algorithm versus learning style. Supervised and unsupervised describe what data the algorithm sees, labelled or not. Many algorithms exist within each.
  • Myth. A newer algorithm is better. Which suits a task depends on the data, so select candidates with validation data or cross-validation and evaluate the chosen result on a separate final test set.

Terms that mention Machine learning algorithm

7 terms mention this one

More in AI concepts

Next steps

  1. split-leakage-check A skill that exercises it.
  2. Machine learning model Related term.
  3. Neural network Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; OpenAI Codex bounded factual repairs; sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections (unsourced claims dropped or softened, attributions tightened).
  • : Bounded source repairs: Broadened learning beyond iterative parameter optimization; separated selection from final testing and removed evaluator fairness guarantee. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.