Skip to content

Instantly share code, notes, and snippets.

View aerovulpe's full-sized avatar
🔨
Let's build this

Aaron Nwabuoku aerovulpe

🔨
Let's build this
View GitHub Profile
function [J grad] = nnCostFunction(nn_params, ...
input_layer_size, ...
hidden_layer_size, ...
num_labels, ...
X, y, lambda)
%NNCOSTFUNCTION Implements the neural network cost function for a two layer
%neural network which performs classification
% [J grad] = NNCOSTFUNCTON(nn_params, hidden_layer_size, num_labels, ...
% X, y, lambda) computes the cost and gradient of the neural network. The
% parameters for the neural network are "unrolled" into the vector