Study Atlas › Computer Science › Artificial intelligence

Machine learning

Algorithms that learn patterns from data rather than following hand-written rules.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Supervised learning fits labelled examples (regression, classification); unsupervised learning finds structure (clustering, PCA); reinforcement learning learns from rewards. Samuel coined the term (1959). Key issues are overfitting, bias–variance trade-off and validation on held-out data.

Example

Predicting house prices from area and location with linear regression; spam filtering with logistic regression.

Code

from sklearn.linear_model import LogisticRegression
model = LogisticRegression().fit(X_train, y_train)
print(model.score(X_test, y_test))

How it works, step by step

  1. Collect and clean data
  2. Split into training and test sets
  3. Choose a model and loss function
  4. Optimise parameters (gradient descent)
  5. Evaluate on unseen data

Open the interactive page with diagrams →

People behind it

References

  1. A. L. Samuel, IBM J. Res. Dev. 1959, 3, 210–229.
  2. C. Cortes, V. Vapnik, Mach. Learn. 1995, 20, 273–297.
  3. L. Breiman, Mach. Learn. 2001, 45, 5–32.

Textbooks

Related topics

Neural networks and backpropagationReinforcement learningTransformers and large language modelsNatural language processingArtificial intelligence: search and the Turing testComputer vision and convolutional neural networksCompilersProgramming paradigmsPublic-key cryptography (Diffie–Hellman, RSA)Software engineering and version control