ML Unit1 (HKB)
ML Unit1 (HKB)
1.1 Overview
• Machine learning is a subfield of artificial intelligence that involves the
development of algorithms and statistical models that enable computers
to improve their performance in tasks through experience.
• A computer program is said to learn from experience E with respect to some
class of tasks T and performance measure P, if its performance at tasks in T, as
measured by P, improves with experience E.
Machine learning Life cycle
1. Problem Definition:
Clearly define the problem you want to solve and determine whether machine
learning is the appropriate approach.
2. Data Collection:
Gather relevant data that will be used to train and test the machine learning
model. The quality and quantity of data play a crucial role in the success of the
model.
3. Data Preprocessing:
Clean and prepare the collected data. This may involve handling missing values,
dealing with outliers, normalizing or standardizing features, and other data
transformations.
4. Feature Engineering:
Select and create relevant features from the dataset that will be used as input
to the machine learning model. This step involves transforming raw data into a
format suitable for model training.
5. Model Selection:
6. Model Training:
Use the prepared data to train the selected model. During training, the model
learns patterns and relationships within the data to make predictions or
classifications.
7. Model Evaluation:
AI can be divided into three Machine learning can also be divided into
types, which are, Weak mainly three types that are Supervised
AI, General AI, and Strong AI. learning, Unsupervised learning,
and Reinforcement learning.
4. Scikit-learn
• Scikit-learn (Sklearn) is the most useful and robust library for machine
learning in Python.
• It provides a selection of efficient tools for machine learning and statistical
modeling including classification, regression, clustering and dimensionality
reduction via a consistence interface in Python.
• This library, which is largely written in Python, is built upon NumPy, SciPy
and Matplotlib.
5. PyTorch
6.TensorFlow