Notes Unit 1
Notes Unit 1
History of ML:
1. 1950s: Alan Turing's ideas on machine intelligence and the development of the
Perceptron (1957) laid the foundation for early machine learning.
2. 1960s: Focus on neural networks and simple learning algorithms like the Perceptron.
3. 1970s: Neural networks decline due to their limitations; focus shifts to rule-based
systems and symbolic AI.
4. 1980s: Revival of neural networks with the development of the backpropagation
algorithm, enabling multi-layer networks to learn complex tasks.
5. 1990s: Rise of Support Vector Machines (SVM), Bayesian networks, and the shift to
data-driven learning from large datasets.
6. 2000s: Growth of ensemble methods (e.g., random forests) and the explosion of big
data, driving advancements in machine learning.
7. 2010s: Deep learning revolution with breakthroughs in image and speech recognition
using Convolutional Neural Networks (CNNs) and Recurrent Neural Networks
(RNNs).
8. 2012: AlexNet wins ImageNet competition, marking a major success for deep learning
in computer vision.
9. 2016: AlphaGo's victory over human Go champions highlights the power of
reinforcement learning and deep learning.
10. 2020s: Widespread use of machine learning, powered by advanced models like
Transformers (GPT-3, BERT), with a growing emphasis on AI ethics and explainability.
Genetic Algorithm:
Example of a Genetic Algorithm:
Scenario: Imagine you want to find the best route for a delivery truck that needs to visit several
cities.
1. Step 1 - Population: Start with random routes, like:
o Route 1: City A → City B → City C → City D
o Route 2: City C → City A → City D → City B
2. Step 2 - Fitness Function: Calculate the total distance for each route. Shorter distances
score higher. For example:
o Route 1: 100 miles
o Route 2: 80 miles (better route)
3. Step 3 - Selection: Select the best routes based on distance. In this case, Route 2 is
chosen more often.
4. Step 4 - Crossover: Mix routes to create new ones. If you combine parts of Route 1 and
Route 2, you might get:
o New Route: City C → City B → City A → City D
5. Step 5 - Mutation: Randomly change a route by swapping two cities. For example:
o From: City C → City B → City A → City D
o To: City C → City A → City B → City D
6. Step 6 - Repeat: Keep repeating the process of evaluating, selecting, crossing over, and
mutating until you find the shortest route.
Approach Maps labelled Understand patterns & Follow the trial and error method
inputs to the known discover output
outputs
Regression Vs Classification:
Independent Variable vs. Dependent Variable:
Independent Variable: The independent variable is the variable that is manipulated or controlled
in an experiment to test its effects on the dependent variable. It is often considered the "cause"
in a cause-and-effect relationship.
Dependent Variable: The dependent variable is the variable that is measured or observed in
response to changes in the independent variable. It is considered the "effect" in a cause-and-
effect relationship.
The amount of sunlight each plant receives per day (In hours) - Independent
The growth of the plants, measured in height (in cm)- Dependent
What is AI:
• The intelligence of machines or software.
• Machine imitates like human beings.
• Ability of machines to think and learn.