Introduction To ML (Group-2)
Introduction To ML (Group-2)
Machine Learning:
Presented By:
Tannu Shree
Himanshu Mandal
Hiya Chatterjee
preencoded.png
Why is Machine Learning Important?
preencoded.png
Machine Learning Terminology
Algorithm Dataset
A collection of data points used
A set of rules or steps used to
to train and evaluate machine
solve a problem or make a
learning models.
prediction.
Feature Model
preencoded.png
Types of Machine Learning
Supervised Learning
Models learn from labeled data, where both inputs and desired outputs are
provided. Ex: Regression, classification
Unsupervised Learning
Models discover patterns and structures in unlabeled data, without specific
outputs. Ex: Clustering
Semi-Supervised Learning
Models learn from a combination of labeled and unlabeled data, leveraging
both types of information.
Reinforcement Learning
Models learn through trial and error, receiving rewards for desired actions
and penalties for undesired ones.
preencoded.png
Supervised Learning
1
Training
The model is trained on labeled data
learning to associate inputs with
their corresponding outputs.
2
Evaluation
The model's performance is
evaluated
based on its accuracy in predicting
outputs for a separate test
dataset.
3
Prediction
The trained model uses the learned
patterns to predict the output for new,
unseen inputs. preencoded.png
Unsupervised Learning
preencoded.png
Semi-Supervised Learning
Improves accuracy
Utilizes unlabeled data to enhance model performance.
preencoded.png
Reinforcement Learning
1 Agent-Environment Interaction
The agent interacts with its environment and receives
rewards or penalties for its actions.
3 Goal-Oriented
The agent aims to achieve a specific goal, such as winning a
game or optimizing a process.
preencoded.png
preencoded.png
preencoded.png
preencoded.png
STEPS OF PREPARING A MACHINE LEARNING MODEL:
preencoded.png
preencoded.png
preencoded.png
preencoded.png
preencoded.png
preencoded.png
preencoded.png
preencoded.png
Evaluation Metrics
1 Accuracy 2 Precision
The overall proportion of The fraction of positive
correct predictions made by predictions that are actually
the model. correct.
3 Recall 4 F1-Score
The fraction of actual The harmonic mean of
positives that are correctly precision and recall,
identified by the model. providing a balanced
evaluation.
preencoded.png
Popular Machine Learning Algorithms
preencoded.png
DECISION TREE
preencoded.png
KNN
KNN ALG0RITHM
preencoded.png
LOGISTIC REGRESSION CURVE:
preencoded.png
LOGISTIC REGRESSION VS SVM:SVM IS A BETTER CLASSIFIER THAN LOGISTIC REGRESSION AS WE SEE SVM
CONSTANTLY UPDATING THE MARGIN TO READJUST ITSELF ACCORDING TO THE MEAN DISTANCE OF THE POINTS FROM THE LINE
SO THAT WE OBTAIN MINIMUM DISTANCE FROM EACH OF THE POINTS IN THE SCATTER PLOT WHEREAS IN LOGISTIC REGRESSION
WE GET AN EXPONENTIAL GRAPH PLOT WITH INCREASING COMPLEXITY SO THAT ALMOST ALL THE POINTS CAN BE PLOTTED ON IT.
preencoded.png
SUPPORT VECTOR MACHINE CLASSIFIER
preencoded.png
preencoded.png
Machine Learning Applications
preencoded.png
preencoded.png
Challenges of Machine Learning
• Data Issues
1.Data Collection
2.Insufficient Data
3.Non Representative Data
4.Poor Quality Data
5.Irrelevant Features
preencoded.png
Collecting Quality Data
Relevant Data
Ensure that the data you collect is truly relevant to the problem you're trying to solve.
Sufficient Quantity
Gather enough data to train your models effectively and avoid underfitting.
Accurate Labeling
Carefully label your data to improve the quality of your model's predictions.
Representative Samples
Collect data that accurately reflects the real-world distribution of your problem
domain.
preencoded.png
Algorithm Issues
Overfitting Underfitting
A model that is too complex can learn A model that is too simple may fail to
the noise in the training data, leading capture the underlying patterns in the
to poor performance on new, unseen data, resulting in poor performance
data. on both training and test data.
preencoded.png
Software Integration Challenges
Data Integration
Seamlessly connect your ML models to diverse data sources and databases.
Scalable Infrastructure
Leverage cloud-based services and platforms to handle the computational demands of your ML projects.
API Integration
Ensure your ML models can be easily integrated into existing software systems and workflows.
Cost Management
Optimize your ML infrastructure and resource utilization to manage the costs associated with model development and
deployment.
preencoded.png
Tools and Frameworks for
Machine Learning
Programming languages
1 Python
Most popular language for machine learning.
Extensive libraries and frameworks (e.g., TensorFlow, Py Torch,
Scikit-learn).
Easy syntax, strong community support, and ideal for rapid
prototyping.
2 R Language
Specializes in statistical analysis and data visualization.
Offers strong tools for data manipulation and modeling (e.g., caret,
random Forest).
Commonly used in academia and research settings.
preencoded.png
.
Libraries
Scikit-Learn
Python-based library for classical machine learning
algorithms . Great for tasks like regression,
classification, clustering, and preprocessing.
Simple and efficient tools for data mining and data
analysis.
TensorFlow
Developed by Google. Open-source framework for
building and deploying deep learning models.
Supports both CPU and GPU, widely used for
production-level AI applications
Py-Torch
Developed by Facebook. Flexible and easy-to-use
deep learning framework.
Preferred for research, dynamic computational
graphs, and quick prototyping.
preencoded.png
Platforms
preencoded.png
preencoded.png
Implementation
Today, we will write Python code to predict home prices using a machine learning
technique called simple linear regression. We will use a dataset that includes the
prices of homes based on their area in Itanagar
preencoded.png
Conclusion
Machine Learning's Potential: Future Outlook:
ML is transforming industries by enabling data-driven decision- As technology advances, ML models will become more efficient,
making. accessible, and integrated into everyday life.
From healthcare to finance, ML applications are vast and The future of ML lies in ethical AI, automation, and innovation.
impactful.
---
"Machine learning is not just about algorithms; it's about
transforming data into insights that drive impactful change."
preencoded.png
Questions?
preencoded.png
preencoded.png