lmjohns3 / theanets

Neural network toolkit for Python
http://theanets.rtfd.org
MIT License
328 stars 74 forks source link

Weights support #71

Closed arogozhnikov closed 9 years ago

arogozhnikov commented 9 years ago

Hi, thanks for the library, I enjoyed playing with it. But in physics application we often have weights for training samples...

Is it possible to add this feature to theanets as third optional argument in tuple? exp.train((X, y, sample_weight))

One way is to add weights as multiplier in loss function, the other way is use weights in drawing batches (events with greater weight will be drawn to batch with greater probability).

Is it possible for theanets?

lmjohns3 commented 9 years ago

I'm going to close this as a duplicate of #58