Evaluating Hypothesis
In general, plotting won't help visualizing if we might be over-fitting or under-fittingSplit our dataset into 2 portions: 70% training set and 30% test set
We can use training set to create our hypothesis (learn parameter theta) then use test set to test our hypothesis by computing Jtest(θ)
If over-fitting: J(θ) is low and Jtest(θ) is high
If under-fitting: J(θ) is low and Jtest(θ) is high
Test Error=1mtest∑mtesti=1err(hΘ(x(i)test),y(i)test)
Resources:- https://www.coursera.org/learn/machine-learning/supplement/aFpD3/evaluating-a-hypothesis
Comments
Post a Comment