

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























Andrew Ng
Layer 1 Layer 2 Layer 3 Layer 4
total no. of layers in network no. of units (not coun5ng bias unit) in layer pedestrian car motorcycle truck E.g. , , ,
Neural Networks: Learning Backpropaga5on algorithm
Layer 1 Layer 2 Layer 3 Layer 4
Training set Set (for all ).
Andrew Ng
Andrew Ng
Neural Networks: Learning Implementa5on note: Unrolling parameters
Andrew Ng
thetaVec = [ Theta1(:); Theta2(:); Theta3(:)]; DVec = [D1(:); D2(:); D3(:)]; Theta1 = reshape(thetaVec(1:110),10,11); Theta2 = reshape(thetaVec(111:220),10,11); Theta3 = reshape(thetaVec(221:231),1,11);
Andrew Ng Have ini5al parameters. Unroll to get initialTheta to pass to fminunc(@costFunction, initialTheta, options)
function [jval, gradientVec] = costFunction(thetaVec)
Andrew Ng
EPSILON)) /(2EPSILON)*
Andrew Ng