punkrockpolly / babel-brain

Takes 2 input files (one english, one spanish) and uses letter-weighting to guess the language of the input file
6 stars 0 forks source link

fitness: cost function needs math #8

Open punkrockpolly opened 10 years ago

punkrockpolly commented 10 years ago

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 nn_params and need to be converted back into the weight matrices.

The returned parameter grad should be a "unrolled" vector of the partial derivatives of the neural network.

punkrockpolly commented 10 years ago

function written, needs to be tested.