Professional Documents
Culture Documents
Unit IV
Unit IV
Unit IV
Pandharpur
Class-Bachelor of Engineering
Subject-Machine Learning
Presentation Prepared By
Mr. Subhash V. Pingale
1
Unit-IV
Its occurrence simply means that our model or the algorithm does not fit
engineering
Remove noise from the data.
linear data or using the parameters like the maximal depth if we are
The training set is used to fit the models. The validation set
is used to estimate prediction error for model selection. The
test set is used for assessment of the prediction error of the
final chosen model.
A typical split might by 50% for training, and 25% each for
validation and testing.
20 Thursday 25 April 2024
Model Assessment cont..
Drawbacks:
The validation set error rate (MSE) can be highly variable.
Only a subset of the observations (those in the training set)
are used to fit the model.
Machine learning methods tend to perform worse when
trained on fewer observations.
Thus, the validation set error rate may tend to overestimate
the test error rate for the model fit on the entire data set.
inj Wkj * Ik
ai = output(inj)
j
Computation:
input signals input function(linear) activation
function(nonlinear) output signal
Part 1. Perceptrons: Simple NN
inputs
weights
x1 w1
activation output
w2
x2
y
. a=i=1n wi xi
.
. wn
xn Xi’s range: [0, 1]
1 if a
y= { 0 if a <
Decision Surface of a Perceptron
1 1 Decision line
x2
w w1 x1 + w2 x2 =
1
0
0
0
x1
1
0 0
Linear Separability
x2 w1=?
w1=1
w2=1 w2=? 0 1
0 1
=1.5 x1 = ? x1
0 0 1 0
=w0
x0=-1
x1 w1
w0
w2
x2 y
. a= i=0n wi xi
.
. wn
xn 1 if a
y= { 0 if a <
Thus, y= sgn(a)=0 or 1
Training the Perceptron
Training set S of examples {x,t}
x is an input vector and
t the desired target vector