0% found this document useful (0 votes)
10 views38 pages

Machine Learning

The document outlines the evolution of machine learning from its early foundations in the 1940s to modern advancements in the 2020s, highlighting key phases such as the birth of AI, AI Winter, and the rise of deep learning. It also describes various machine learning paradigms, including supervised, unsupervised, semi-supervised, reinforcement, online, and batch learning, along with their applications and algorithms. Additionally, the document discusses the machine learning life cycle, emphasizing the iterative process from problem definition to model deployment and monitoring.

Uploaded by

mechhod.astc
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views38 pages

Machine Learning

The document outlines the evolution of machine learning from its early foundations in the 1940s to modern advancements in the 2020s, highlighting key phases such as the birth of AI, AI Winter, and the rise of deep learning. It also describes various machine learning paradigms, including supervised, unsupervised, semi-supervised, reinforcement, online, and batch learning, along with their applications and algorithms. Additionally, the document discusses the machine learning life cycle, emphasizing the iterative process from problem definition to model deployment and monitoring.

Uploaded by

mechhod.astc
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

MACHINE LEARNING

EVOLUTION OF MACHINE LEARNING: The evolution of Machine Learning is


the story of how computers progressed from following fixed rules to learning patterns from data
and making intelligent decisions. It can be explained clearly in phases:

1. Early Foundations (1940s–1950s)

 Roots in mathematics, statistics, and neuroscience


 Alan Turing (1950) proposed the Turing Test to evaluate machine intelligence
 Early idea: Can machines think and learn like humans?

👉 Learning was theoretical; computers were very limited

2. Birth of Artificial Intelligence (1956–1960s)

 1956 Dartmouth Conference: term Artificial Intelligence coined


 First learning models like Perceptron (early neural network)
 Programs could solve simple problems and play games

👉 Optimism was high, but computing power and data were insufficient.

3. AI Winter (1970s–1980s)

 Over-promises led to disappointment


 Limited memory, slow processors, and poor algorithms
 Funding and research declined → called AI Winter

👉 ML progress slowed significantly.

4. Revival with Statistical Learning (1990s)

 Shift from rule-based AI to data-driven learning


 Introduction of:
o Decision Trees
o k-Nearest Neighbors (k-NN)
o Support Vector Machines (SVM)
 Better statistical methods and increased data availability

👉 ML became more practical and reliable.

5. Big Data & Computing Power Era (2000s)

 Explosion of internet data


 Cheaper storage and faster processors
 ML widely applied in:
o Spam filtering
o Recommendation systems
o Search engines

👉 Learning from large datasets became feasible.

6. Deep Learning Revolution (2010s)

 Rise of Deep Neural Networks


 Enabled by:
o GPUs
o Large labeled datasets
 Major breakthroughs in:
o Image recognition
o Speech recognition
o Natural Language Processing (NLP)

Examples:

 Self-driving cars
 Face recognition
 Voice assistants (Siri, Alexa)

7. Modern Machine Learning (2020s–Present)

 Transformer models, Large Language Models (LLMs)


 Reinforcement learning for robotics and gaming
 AutoML and explainable AI (XAI)
 ML used in:
o Healthcare
o Finance
o Manufacturing
o Climate and energy systems

👉 Focus on ethical, interpretable, and efficient ML.

Summary Timeline
Period Key Development
1950s Foundations of AI
1960s Early learning models
1970s–80s AI Winter
1990s Statistical ML
2000s Big Data & Web
2010s Deep Learning
2020s LLMs & Responsible AI
PARADIGMS FOR ML:
Paradigms for Machine Learning (ML)

Machine Learning paradigms describe how a model learns from data and what kind of
supervision or feedback it receives. The main ML paradigms are explained below in a clear,
exam-oriented way.

1. Supervised Learning
Definition:
The model is trained using labeled data, where both input and correct output are known.

Goal:
Learn a mapping from input → output.

Types:

 Classification – Output is a category


Example: Spam vs Non-spam email
 Regression – Output is a continuous value
Example: Predicting house prices

Common Algorithms:

 Linear Regression
 Logistic Regression
 Decision Tree
 Support Vector Machine (SVM)
 k-Nearest Neighbors (KNN)
 Neural Networks

Applications:

 Disease diagnosis
 Credit scoring
 Image recognition
2. Unsupervised Learning

Definition:
The model works with unlabeled data and tries to find hidden patterns.

Goal:
Discover structure in data.

Types:

 Clustering – Group similar data points


 Association – Find relationships among variables
 Dimensionality Reduction – Reduce features

Common Algorithms:

 K-Means Clustering
 Hierarchical Clustering
 DBSCAN
 Apriori Algorithm
 Principal Component Analysis (PCA)

Applications:

 Customer segmentation
 Market basket analysis
 Anomaly detection

3. Semi-Supervised Learning
Definition:
Uses a small amount of labeled data and a large amount of unlabeled data.

Goal:
Improve learning accuracy when labeled data is expensive or scarce.

Examples:

 Label propagation
 Self-training models

Applications:
 Speech recognition
 Medical image analysis
 Web content classification

4. Reinforcement Learning
Definition:
An agent learns by interacting with an environment and receiving rewards or penalties.
Goal:
Maximize cumulative reward.

Key Components:

 Agent
 Environment
 Action
 Reward
 Policy

Common Algorithms:

 Q-Learning
 SARSA
 Deep Q Networks (DQN)
 Policy Gradient Methods

Applications:

 Robotics
 Game playing (Chess, Go)
 Autonomous vehicles

5. Online Learning

Definition:
Model learns continuously as new data arrives.

Applications:

 Stock price prediction


 Fraud detection
 Recommendation systems

6. Batch (Offline) Learning

Definition:
Model is trained once on the entire dataset and updated periodically.

Applications:
 Sales forecasting
 Academic research models

Summary Table
Paradigm Labeled Data Feedback Type Example

Supervised Yes Direct Spam detection

Unsupervised No None Customer clustering

Semi-Supervised Partial Limited Medical imaging

Reinforcement No labels Reward/Penalty Robot control

Online May vary Continuous Stock prediction

Batch Fixed dataset Periodic Demand forecasting

Learning by Rote (Rote Learning) is a method of learning in which information is memorized


through repetition without necessarily understanding its meaning or underlying concepts.

Explanation

In rote learning, learners repeatedly read, write, or recite information until it is remembered. The
focus is on memorization, not on comprehension, analysis, or application.

Examples

 Memorizing multiplication tables


 Learning formulas in mathematics or physics by heart
 Remembering definitions, dates, or facts for exams
 Reciting poems or spelling words

Characteristics

 Based on repetition
 Little or no understanding of concepts
 Quick recall of information
 Short-term learning if not revised regularly

Advantages

 Useful for learning basic facts


 Helps in fast recall
 Simple and easy to apply
 Effective for foundational learning (alphabets, numbers)

Disadvantages

 Does not promote understanding or critical thinking


 Knowledge is easily forgotten
 Difficult to apply in real-life situations
 Can be boring and monotonous

It looks like you may mean “Learning by Induction” (this is a common term in education and
psychology).
If you meant something else by introduction, please tell me.
Below is the explanation of Learning by Induction.

Learning by Induction

Learning by Induction is a method of learning in which a learner observes specific examples


or experiences and then forms a general rule or concept from them.

Explanation

In this method, learning moves from particular to general. Instead of being told a rule first, the
learner discovers the rule by analyzing examples.

Examples

 After seeing many examples like


2 + 4 = 6, 4 + 6 = 10, 6 + 8 = 14
the learner concludes: even + even = even
 Observing that iron, copper, and aluminum conduct electricity → concluding that metals
are good conductors
 In science labs, students perform experiments and derive laws

Characteristics

 Based on observation and experience


 Encourages thinking and reasoning
 Learner plays an active role
 Concepts are discovered, not memorized

Advantages
 Promotes deep understanding
 Improves critical thinking
 Knowledge is retained longer
 Learning is meaningful

Disadvantages

 Time-consuming
 May lead to wrong conclusions if examples are limited
 Not suitable for very young learners without guidance

Reinforcement Learning

Reinforcement Learning (RL) is a type of learning in which an individual or system learns by


doing and improves its behavior based on rewards and punishments received from the
environment.

Explanation

In reinforcement learning, a learner takes an action in a given situation.

 If the action is correct, it receives a reward.


 If the action is wrong, it receives a penalty.

Over time, the learner learns to choose actions that maximize rewards and avoid penalties.

Example (Simple)

 A child is praised for completing homework → the child repeats the behavior
 A student is corrected for a mistake → avoids repeating it
 Training a dog: giving a treat for correct behavior

Example (Artificial Intelligence)

 A robot learns to walk by trial and error


 A game-playing program improves by winning points and losing points

Key Components

 Agent – the learner (student, animal, or AI system)


 Environment – the situation in which learning occurs
 Action – what the agent does
 Reward/Punishment – feedback received
 Policy – strategy to choose actions
Characteristics

 Learning through trial and error


 Feedback-based learning
 No direct instruction
 Continuous improvement

Advantages

 Encourages active learning


 Effective for skill development
 Produces long-term behavior change
 Widely used in AI and robotics

Disadvantages

 Learning can be slow


 Requires many trials

Types of Data

Data are facts or information collected for analysis, decision-making, or research. Data can be
classified in several common ways, especially in statistics, research, and machine learning.

1. Qualitative Data (Categorical Data)

This type of data describes qualities or characteristics and cannot be measured numerically.

a) Nominal Data

 Categories with no specific order


 Examples: Gender (Male/Female), Blood group (A, B, AB, O), Color

b) Ordinal Data

 Categories with a meaningful order, but no fixed difference between them


 Examples: Grades (A, B, C), Satisfaction level (Low, Medium, High), Rank

2. Quantitative Data (Numerical Data)

This type of data represents numbers and quantities and can be measured.
a) Discrete Data

 Countable values
 Usually whole numbers
 Examples: Number of students, Number of machines, Number of cars

b) Continuous Data

 Measurable values
 Can take any value within a range
 Examples: Height, Weight, Temperature, Time

3. Based on Measurement Scale (Statistics)

a) Interval Data

 Ordered data with equal intervals


 No true zero
 Examples: Temperature in °C or °F, Calendar dates

b) Ratio Data

 Ordered data with equal intervals and a true zero


 All mathematical operations are possible
 Examples: Height, Weight, Distance, Age

4. Based on Structure (Computer Science / ML)

a) Structured Data

 Organized in tables (rows and columns)


 Examples: Excel sheets, SQL databases

b) Unstructured Data

 No fixed format
 Examples: Images, videos, audio, text documents

c) Semi-Structured Data

 Partially organized
 Examples: XML files, JSON files, emails

Matching in Machine Learning (For Notes)

Matching in Machine Learning refers to the process of comparing data objects and
identifying similarities or exact correspondences between them based on certain features,
patterns, or criteria.

Definition

Matching is a technique used to determine whether two or more data instances are similar,
identical, or belong together according to predefined rules or learned models.

Purpose of Matching in ML

 To find similar records


 To identify duplicates
 To associate inputs with correct outputs
 To support classification, retrieval, and recognition tasks

Types of Matching in Machine Learning

1. Exact Matching

 Data must match exactly


 Used in databases and rule-based systems
 Example: Matching usernames or IDs

2. Approximate (Similarity) Matching

 Allows partial or near matches


 Uses distance or similarity measures
 Example: Face recognition, document similarity

Common Matching Techniques

1. Feature-Based Matching
 Objects are compared using selected features
 Example: Matching images using color, shape, texture

2. Template Matching

 Input is compared with predefined templates


 Used in image and pattern recognition

3. Distance-Based Matching

 Measures distance between data points


 Common measures:
o Euclidean distance
o Manhattan distance
o Cosine similarity

4. Probabilistic Matching

 Uses probability to decide the best match


 Example: Speech recognition, NLP tasks

Applications of Matching

 Face and fingerprint recognition


 Recommendation systems
 Record linkage and de-duplication
 Information retrieval
 Pattern recognition

Advantages

 Improves accuracy in classification and recognition


 Helps handle noisy or incomplete data
 Useful in real-world ML problems

Disadvantages

 Computationally expensive for large datasets


 Performance depends on feature selection
 Sensitive to noise if not properly designed

Machine learning life cycle is an iterative process of building an


end to end machine learning project or ML solution. Building a
machine learning model is a continuous process especially with the
growing amount of data. Machine learning focuses on improving a
system's performance through training the model with real world
data. We have to follow some well-defined steps for making a
machine learning project successful. The machine learning life cycle
provides us with these well-defined steps or phases.

What is Machine Learning Life Cycle?

The machine learning life cycle is an iterative process that moves


from a business problem to a machine learning solution. It is used as
a guide for developing a machine learning project to solve a
problem. It provides us with instructions and best practices to be
used in each phase while developing ML solutions.

The machine learning life cycle is a process that involves several


phases from problem identification to model deployment and
monitoring. While developing an ML project, each step in the life
cycle is revisited many times through these phases. The stages/
phases involved in the end to end machine life cycle process are as
follows −

 Problem Definition
 Data Preparation
 Model Development
 Model Deployment
 Monitoring and Maintenance
Let's discuss the above phases of machine learning life cycle
process in detail −

Advertisement

02:02

Problem Definition

The first step in the machine learning life cycle is to identify the
problem you want to solve. It is a crucial step which helps you start
building a machine learning solution for a problem. This process of
identifying a problem would establish an understanding about what
the output might be, scope of the task and its objective.
As this step lays the foundation for building a machine learning
model, the problem definition has to be clear and concise.

This stage involves understanding the business problem, defining


the problem statement, and identifying the success criteria for the
machine learning model.

Data Preparation

Data preparation is a process to prepare data for analysis by


performing data exploration, feature engineering, and feature
selection. Data exploration involves visualizing and understanding
the data, while feature engineering involves creating new features
from the existing data. Feature selection involves selecting the most
relevant features that will be used to train the machine learning
model.

Data preparation process includes collecting data, preprocessing


data, and feature engineering & feature selection. This stage
generally also includes exploratory data analysis.

Let's discuss each step involved in the data preparation phase of


machine learning life cycle process −

1. Data Collection
After the problem statement is analyzed, the next step would be
collecting data. This involves gathering data from various sources
which is given as a raw material to the machine learning model. Few
features that are considered while collecting data are −

 Relevant and usefulness − The data collected has to be relevant


to the problem statement, and also should be useful enough to train
the machine learning model efficiently.
 Quality and Quantity − The quality and quantity of the data
collected would directly impact the performance of the machine
learning model.
 Variety − Make sure that the data collected is diverse so that the
model can be trained with multiple scenarios to recognize the
patterns.
There are various sources from where the data can be collected like
surveys, existing databases, and online platforms like Kaggle. The
sources may be primary data which includes data collected
exclusively for the problem statement while the secondary data
includes the existing data.

2. Data Preprocessing
The data collected often might be unstructured and messy which
causes it to negatively affect the outcomes, hence pre processing
data is important to improve the accuracy and performance of the
machine learning model. Issues that have to be addressed
are missing values, duplicate data, invalid data and noise.

This step of data preprocessing also called data wrangling is


intended to make the data more consumable and useful for
analytics.

3. Analyzing Data
After the data is all sorted, it is time to understand the data that is
collected. The data is visualized and statistically summarized to gain
insights.

Various tools like Power BI, Tableau are used to visualize data which
helps in understanding the patterns and trends in the data. This
analysis will help to make choices in feature engineering and model
selection.

4. Feature Engineering and Selection


A 'Feature' is an individual measurable quantity which is preferably
observed when the machine learning model is being
trained. Feature Engineering is the process of creating new
features or enhancing the existing ones to accurately understand
the patterns and trends in the data.
Feature selection involves the process of picking up features that
are consistent and more relevant to the problem statement. The
process of feature engineering and selection are used to reduce the
size of the dataset which is important to tackle the issue of growing
data.

Model Development

In the model development phase, the machine learning model is


built using the prepared data. The model building process involves
selecting the appropriate machine learning algorithm, algorithm
training, tuning the hyperparameters of the algorithm, and
evaluating the performance of the model using cross-validation
techniques.

This phase mainly consists of three steps, model selection, model


training, and model evaluation. Let's discuss these three steps in
detail −

1. Model Selection
Model selection is a crucial step in the machine learning workflow.
The decision of choosing a model depends on basic features like
characteristics of the data, complexity of the problem, desired
outcomes and how well it aligns with the defined problem. This step
affects the outcomes and performance metrics of the model.

2. Model Training
In this process, the algorithm is fed with a preprocessed dataset to
identify and understand the patterns and relationships in the
specified features.

Consistent training of a model by adjusting parameters would


improve the prediction rate and enhance accuracy. This step makes
the model reliable in real-world scenarios.

3. Model Evaluation
In model evaluation, the performance of the machine learning model
is evaluated using a set of evaluation metrics. These metrics
measure the accuracy, precision, recall, and F1 score of the model.
If the model has not achieved desired performance, the model is
tuned to adjust hyper parameters and improve the predictive
accuracy. This continuous iteration is essential to make the model
more accurate and reliable.

If the model's performance is still not satisfactory, it may be


necessary to return to the model selection stage and continue to
model training and evaluation to improve the model's performance.

Model Deployment

In the model deployment phase, we deploy the machine learning


model into production. This process involves integrating the tested
model with existing systems to make it available to users,
management or other purposes. This also involves testing the model
in a real-world scenario.

Two important factors that have to be checked before deploying are


whether the model is portable i.e, the ability to transfer the software
from one machine to another and scalable i.e, the model need not
be redesigned to maintain performance.

Monitor and Maintenance

Monitoring in machine learning involves techniques to measure the


model performance metrics and to detect issues in the models. After
an issue is detected, the model has to be trained with new data or
the architecture has to be modified.

Sometimes when the issue detected in the designed model cannot


be solved with training it with new data, the issue becomes the
problem statement. So, the machine learning life cycle revamps
from analyzing the problem again to develop an improved model.

The machine learning life cycle is an iterative process, and it may be


necessary to revisit previous stages to improve the model's
performance or address new requirements. By following the
machine learning life cycle, data scientists can ensure that their
machine learning models are effective, accurate, and meet the
business requirements.
Data Acquisition (For Notes)

Data Acquisition is the process of collecting, measuring, and gathering data from various
sources so that it can be analyzed, stored, and used in applications such as Machine Learning,
research, and decision-making systems.

Definition

Data Acquisition refers to the systematic collection of raw data from real-world sources and
converting it into a form suitable for processing by computers.

Sources of Data Acquisition

 Sensors (temperature, pressure, motion, etc.)


 Databases and data warehouses
 Surveys and questionnaires
 Web scraping and APIs
 Images, audio, and video devices
 User-generated data (logs, clicks, transactions)

Steps in Data Acquisition

1. Identify data requirements


2. Select data sources
3. Collect raw data
4. Convert data into digital format
5. Store data securely
6. Validate data quality

Types of Data Acquisition

 Manual data acquisition – surveys, forms, observations


 Automatic data acquisition – sensors, IoT devices, software logs
 Batch acquisition – data collected at intervals
 Real-time acquisition – continuous data collection
Importance of Data Acquisition

 Foundation for accurate analysis and ML models


 Improves decision-making
 Enables automation and monitoring
 Ensures availability of quality data

Applications

 Machine Learning and AI systems


 Scientific experiments
 Healthcare monitoring
 Industrial automation
 Weather forecasting
 Business analytics

Advantages

 Provides real-world data


 Supports accurate modeling
 Enables continuous monitoring

Challenges

 Data noise and errors


 High storage requirements
 Security and privacy issues
 Data integration from multiple sources

Feature Engineering (For Notes)

Feature Engineering is the process of selecting, creating, transforming, and optimizing


input variables (features) from raw data to improve the performance of Machine Learning
models.
Definition

Feature Engineering involves converting raw data into meaningful and useful features that
help ML algorithms learn patterns more effectively.

Importance of Feature Engineering

 Improves model accuracy and efficiency


 Reduces noise and irrelevant information
 Helps algorithms learn faster
 Often more important than the choice of ML algorithm

Steps in Feature Engineering

1. Feature selection – choosing relevant features


2. Feature creation – generating new features from existing data
3. Feature transformation – scaling or encoding data
4. Feature extraction – reducing data dimensionality

Common Feature Engineering Techniques

1. Feature Selection

 Removing irrelevant or redundant features


 Methods:
o Filter methods (correlation, chi-square)
o Wrapper methods (forward/backward selection)
o Embedded methods (Lasso, decision trees)

2. Feature Creation

 Creating new features from existing ones


 Examples:
o BMI from height and weight
o Date → day, month, year
o Interaction features (feature combinations)
3. Feature Transformation

 Scaling numerical features:


o Normalization
o Standardization
 Encoding categorical data:
o One-hot encoding
o Label encoding
 Log and power transformations

4. Feature Extraction

 Transforming data into fewer features


 Examples:
o Principal Component Analysis (PCA)
o Autoencoders
o TF-IDF in text data

Applications

 Image recognition
 Natural Language Processing (NLP)
 Recommendation systems
 Predictive analytics

Advantages

 Enhances model performance


 Reduces overfitting
 Improves interpretability
 Works with limited data

Challenges

 Time-consuming process
 Requires domain knowledge
 Risk of data leakage if done incorrectly

Data Representation (For Notes)

Data Representation is the method of organizing, formatting, and encoding data so that it
can be efficiently stored, processed, and understood by computers and machine learning
models.

Definition

Data Representation refers to how raw data is converted into a structured or numerical form
suitable for computation and analysis.

Importance of Data Representation

 Enables efficient data storage and processing


 Improves accuracy of ML models
 Makes data understandable to algorithms
 Reduces complexity and ambiguity in data

Types of Data Representation

1. Numerical Representation

 Data represented as numbers


 Examples:
o Age = 25
o Temperature = 36.5
o Binary data (0 and 1)

2. Categorical Representation

 Data represented using categories or labels


 Methods:
o Label encoding
o One-hot encoding
 Examples:
o Gender → Male = 0, Female = 1
o Color → Red, Blue, Green

3. Text Representation

 Text converted into numerical form


 Techniques:
o Bag of Words (BoW)
o TF-IDF
o Word embeddings (Word2Vec, GloVe)
 Example: Documents in NLP tasks

4. Image Representation

 Images represented as pixels and matrices


 Each pixel has intensity or RGB values
 Example: Grayscale image → 2D matrix

5. Time-Series Representation

 Data represented as a sequence over time


 Example:
o Stock prices
o Sensor readings

Data Representation in Machine Learning

 Feature vectors
 Matrices and tensors
 Sparse and dense representations

Advantages

 Makes data machine-readable


 Supports efficient computation
 Improves learning performance

Challenges

 High dimensionality
 Loss of information
 Choice of wrong representation affects results

Model Selection (For Notes)

Model Selection is the process of choosing the most suitable machine learning model from a
set of candidate models for a given problem and dataset.

Definition

Model Selection refers to evaluating and comparing different models to identify the one that
gives the best performance while maintaining good generalization on unseen data.

Importance of Model Selection

 Improves prediction accuracy


 Prevents underfitting and overfitting
 Ensures efficient use of data and resources
 Helps achieve reliable and robust results

Factors Affecting Model Selection

 Nature of the problem (classification, regression, clustering)


 Size and quality of the dataset
 Complexity of the model
 Interpretability requirements
 Computational cost
Common Models Considered

 Linear Regression / Logistic Regression


 Decision Trees
 k-Nearest Neighbors (k-NN)
 Support Vector Machines (SVM)
 Naïve Bayes
 Neural Networks
 Ensemble models (Random Forest, Boosting)

Model Selection Techniques

1. Train–Test Split

 Data divided into training and testing sets


 Model performance evaluated on test data

2. Cross-Validation

 Data divided into multiple folds


 Each fold used once for testing
 Common method: k-fold cross-validation

3. Performance Metrics

 Accuracy
 Precision, Recall, F1-score
 Mean Squared Error (MSE)
 R² score
 ROC–AUC

4. Bias–Variance Trade-off

 Low bias + low variance is ideal


 Simple models → high bias
 Complex models → high variance

5. Hyperparameter Tuning

 Adjusting model parameters


 Methods:
o Grid search
o Random search

Advantages

 Leads to better generalization


 Optimizes model performance
 Reduces errors

Challenges

 Time-consuming
 Risk of overfitting during selection
 Requires proper validation strategy

Model Learning (For Notes)

Model Learning is the process by which a machine learning algorithm learns patterns,
relationships, or rules from training data and builds a model that can make predictions or
decisions on new, unseen data.

Definition

Model Learning refers to the stage in the ML process where the algorithm adjusts its
parameters using training data to minimize error and improve performance.

How Model Learning Works

1. Input data is given to the algorithm


2. The model makes predictions
3. Error is calculated using a loss function
4. Model parameters are updated
5. Steps are repeated until performance improves
Types of Model Learning

1. Supervised Learning

 Learns from labeled data


 Examples:
o Classification (spam detection)
o Regression (price prediction)

2. Unsupervised Learning

 Learns from unlabeled data


 Examples:
o Clustering (k-means)
o Dimensionality reduction (PCA)

3. Semi-Supervised Learning

 Uses small labeled data + large unlabeled data


 Example: Image classification with limited labels

4. Reinforcement Learning

 Learns using rewards and penalties


 Example: Game-playing agents

Key Components of Model Learning

 Training data
 Features
 Learning algorithm
 Loss function
 Optimization method (e.g., gradient descent)
Importance of Model Learning

 Enables prediction and decision-making


 Improves accuracy over time
 Adapts to new data patterns

Challenges

 Overfitting and underfitting


 Data quality issues
 Computational complexity

Model Prediction (For Notes)

Model Prediction is the process in which a trained machine learning model uses learned
patterns to predict outputs for new, unseen input data.

Definition

Model Prediction refers to applying a trained model to test or real-world data to estimate the
target value or class label.

How Model Prediction Works

1. New input data is provided to the model


2. The model processes the input using learned parameters
3. The model generates an output (prediction)
4. The output is used for decision-making or evaluation

Types of Model Prediction

1. Classification Prediction

 Predicts categories or class labels


 Examples:
o Spam or not spam
o Disease positive/negative
2. Regression Prediction

 Predicts continuous numerical values


 Examples:
o House price prediction
o Temperature forecasting

3. Probability Prediction

 Predicts the likelihood of each class


 Example: 80% chance of rain

Model Prediction vs Model Learning

 Model Learning: Model is trained using labeled data


 Model Prediction: Model is used to predict unseen data

Importance of Model Prediction

 Enables automation
 Supports real-time decision-making
 Measures model performance

Evaluation of Predictions

 Accuracy
 Precision and Recall
 Mean Absolute Error (MAE)
 Mean Squared Error (MSE)

Challenges

 Poor generalization
 Noisy or unseen data patterns
 Data drift over time

Searching and Learning Datasets (For Notes)

Searching and Learning Datasets refers to the process of finding suitable datasets and then
training machine learning models using those datasets to discover patterns and make
predictions.

1. Searching Datasets

Definition

Searching datasets is the process of identifying, collecting, and selecting relevant data
required for a specific machine learning or data analysis problem.

Sources of Datasets

 Public repositories (Kaggle, UCI ML Repository)


 Government open data portals
 Research publications
 Company or organizational databases
 Sensors, IoT devices, logs
 Web data (APIs, web scraping)

Criteria for Dataset Selection

 Relevance to the problem


 Size of the dataset
 Data quality (missing values, noise)
 Labeled or unlabeled data
 Ethical and legal permissions

2. Learning from Datasets

Definition

Learning datasets means using the selected data to train a machine learning model so that it
can learn patterns, relationships, or rules.

Steps in Learning Datasets


1. Data collection
2. Data preprocessing (cleaning, normalization)
3. Feature extraction and selection
4. Model training
5. Model evaluation
6. Model improvement

Types of Learning Using Datasets

1. Supervised Learning

 Uses labeled datasets


 Example: spam detection, disease prediction

2. Unsupervised Learning

 Uses unlabeled datasets


 Example: clustering customers

3. Semi-Supervised Learning

 Small labeled + large unlabeled data


 Example: image classification

4. Reinforcement Learning

 Learns from interaction with environment


 Dataset grows over time

Importance

 Quality of dataset directly affects model accuracy


 Proper searching avoids biased or irrelevant data
 Good learning datasets improve generalization

Challenges

 Finding high-quality data


 Data imbalance
 Large storage and processing needs
 Data privacy issues

You might also like