machine-learning-book icon indicating copy to clipboard operation
machine-learning-book copied to clipboard

Make compute_mse_and_acc func on pg 354 more elegant

Open rasbt opened this issue 4 years ago • 0 comments

actually, I am not sure why I wasn't computing it with

loss = np.sum((onehot_targets - probas)**2)

(instead of mean) in the loop and then using

mse = mse/num_examples

instead of

mse = mse/i

Let me make a note to update this!

rasbt avatar Apr 21 '22 20:04 rasbt