03-Introduction To Machine Learning - DNN
03-Introduction To Machine Learning - DNN
Learning
Algorithm
Model
Parameters
Objective
Function
Optimization
Process
Evaluation
Introduction to Machine Learning
Learning or Training?
Introduction to Machine Learning
Let’s Test Your Learning
Introduction to Machine Learning
Supervised Learning
Introduction to Machine Learning
Think About It:
• In 1957, Frank Rosenblatt – at the Cornell Aeronautical Laboratory – combined Donald Hebb’s model
of brain cell interaction with Arthur Samuel’s Machine Learning efforts and created the perceptron .
➔ Training data
➔ Testing data
➔ Validation data
Introduction to Machine Learning
Training data
➔ A machine learns from data. It finds relationships, and patterns from data.
➔ The data provided to the machine to learn and train itself is called training data.
Introduction to Machine Learning
Testing data
➔ Once the machine is trained by using training data, in order to test the machine if it is working fine or not, we use
another set of data which should not be the same data on which the model was trained,known as testing data
Introduction to Machine Learning
Outliers
➔ In the dataset there might be some data points that differ from all other data points
➔ Outliers are normally excluded from the dataset.
➔ They can be identified by visualizing the dataset
Introduction to Machine Learning
Model
➔ A machine learning model is a mathematical equation or expression that tries to fit the data and learn to
predict the unseen data
➔ Samples are encoded as being vectors with real values
➔ After encoding, every sample is really a point in some feature space
➔ Model is a function in the feature space
➔ Dimensions
➔ Parameters
➔ Hyperparameters
Introduction to Machine Learning
Training a model
➔ The process of trying to fit the training data into a model through a machine learning algorithm to achieve a
pattern in the data for predicting an unseen data is known as training a model
➔ Finding the parameters of the model that best capture the pattern of the data
Introduction to Machine Learning
Cost, Error, Loss, Risk, Accuracy
Introduction to Machine Learning
Confusion Matrix, Accuracy
Introduction to Machine Learning
Confusion Matrix, Accuracy
• True Positive: The model has predicted yes, and the actual value
was also true.
• False Positive: The model has predicted Yes, but the actual value
was No.
• False Negative: The model has predicted no, but the actual value
was Yes.
• True Negative: The model has given prediction No, and the real or
actual value was also No.
Introduction to Machine Learning
Accuracy
We can perform various calculations for the model, such as
the model accuracy, using this Matrix. These calculations
are give below:
Accuracy:
• It gives you the overall accuracy of the Model.
• To calculate accuracy, use the following formula:
Introduction to Machine Learning
Recall, Precision
Recall:
• Recall tells us How many of the actual positive cases we were able
to predict correctly with our Model.
Precision:
• Precision tells you how many of the correctly predicted cases
actually turned out to be positive.
Introduction to Machine Learning
Specificity, F1-Score
Specificity:
Specificity is the proportion of actual negative cases that are correctly
identified by the model.
F1-Score:
F1 score is the harmonic mean of precision and recall, providing a balance
between the two metrics.
Introduction to Machine Learning
➔ Formats of data
◆ Structured data
● Labeled data
● Unlabeled data
◆ Unstructured data
➔ Images
➔ Videos
➔ Audio
➔ Text
➔ One Hot encoding
➔ Data standardization
Introduction to Machine Learning
A general flow of a typical Machine learning project
➔ Data collection
➔ Feature extraction
➔ Data preprocessing
➔ Model training
➔ Testing
➔ Validation
➔ Repeat/Happy Ending