theanets icon indicating copy to clipboard operation
theanets copied to clipboard

add feed_forward-like method for computing loss value

Open lmjohns3 opened this issue 9 years ago • 1 comments

We should include the value of the loss in the output from the feed_forward method.

lmjohns3 avatar Jan 25 '16 19:01 lmjohns3

I tried to implement this several months ago and got what I thought were strange errors; now that I look at it again it's pretty clear that the loss can't actually be computed from the inputs to feed_forward! The feed_forward method only takes as inputs the input arrays to the network (notably not the target outputs). Losses in general (except for autoencoder losses) require target outputs to compute, so in general this isn't going to be doable as-is.

I will leave this open; we could add a method that just computes the loss, perhaps.

lmjohns3 avatar May 17 '16 05:05 lmjohns3