Machine Learning Notes
Introduction to Machine Learning
Arthur Samuel (1959) defined Machine Learning as giving computers the ability to learn without explicit programming.
Tom Mitchell (1998) defined it as algorithms improving performance at task with experience , a well-defined learning task is given by .
Well-Posed Learning Problem
A computer program learns from experience regarding task and performance measure if its performance improves with .
Traditional Programming vs. Machine Learning
Traditional programming involves inputting data and a program into a computer to produce output; machine learning involves inputting data and output into a computer to generate a program.
Machine Learning Algorithms
Supervised learning
Unsupervised learning
Supervised Learning
Learns from being given "right answers". Consists of:
Regression: Predicting a number with infinitely many possible outputs, such as housing price prediction.
Classification: Predicting categories with a small number of possible outputs, such as breast cancer detection.
Unsupervised Learning
Finds something interesting in unlabeled data. Two main types:
Clustering: Grouping similar data points together, like grouping news articles or customers.
Anomaly detection: Finding unusual data points.
Terminology
Training Set: Data used to train the model.
= "input" variable / feature.
= "output" / "target" variable.
= single training example.
= number of training examples.
= training example.
During supervised learning:
A learning algorithm is fed with training set, features, and targets.
The algorithm produces a function called the hypothesis.
Given a new input , the hypothesis outputs an estimate or prediction .
Linear Regression
The hypothesis function is represented as: , where and are parameters.
: weight / coefficient (slope).
: bias (y-intercept).
This represents a linear regression with one variable, also known as univariate linear regression.
Cost Function
Used to measure the accuracy of the model's predictions.
Model:
Parameters:
Cost function:
Goal: Minimize by tuning and
Simplified cost function (with ):