Definition: Machine Learning (ML) allows computers to learn from data without being explicitly programmed.
According to Alan Turing: "Can machines think?"
Example: Turing Test - A human judge interacts with a human and a computer to distinguish between them. If the judge cannot consistently tell which is which, the computer passes the test.
KEY DEFINITIONS
Arthur Samuel (1959): Describes ML as the ability of computers to learn from experience.
T. Mitchell: A computer program learns from experience E in regard to tasks T if performance P improves with E.
Applications of ML:
Spam detection
Voice recognition
Stock trading
Robotics
Healthcare diagnostics
SEO and ecommerce optimizations.
TYPES OF MACHINE LEARNING
SUPERVISED LEARNING
Involves an input-output pairing where the correct output is known.
Types of problems:
Regression: Predicting a continuous output.
Example: Predict house price based on size.
Classification: Predicting discrete categories.
Example: Classifying a tumor as benign or malignant.
UNSUPERVISED LEARNING
The model finds hidden patterns in data without labeled responses.
No right or wrong answers, used to explore data and discover patterns.
Clustering: Grouping data based on similarity.
Example: Classifying genes based on various characteristics.
FUNCTIONALITY IN SUPERVISED LEARNING
MODELING
Models define the relationship between input (X) and output (Y).
Training set is represented as pairs of input and output: ({(x(i), y(i)); i = 1, …, m}).
HYPOTHESIS
A function ( h: X \rightarrow Y ) that predicts the output.
Example of hypothesis in linear regression:
( Y' = mx + c ) where ( m ) is the slope and ( c ) is the intercept.
LOSS FUNCTION
Measures accuracy of predictions by comparing predicted values to actual outcomes.
Often minimized using techniques like gradient descent.
For example, the Mean Squared Error is calculated as: n1∑i=1n(h(x(i))−y(i))2
GRADIENT DESCENT
An optimization algorithm used to find the minimum of a function.
Iteratively adjusts parameters to reduce the loss function value.
Involves calculating the derivative to find the slope of the cost function and adjusting with learning rate ( \alpha ).