v0.2.0
Features
- PyTorch 0.4 support
- Add
GradNormClippingcallback - Add generic learning rate scheduler callback
- Add
CyclicLRlearning rate scheduler - Add
WarmRestartLRlearning rate scheduler - Scoring callbacks now re-use predictions, accelerating training
fit()and inference methods (e.g.,predict()) now supporttorch.util.data.Datasetas input as long as(X, y)pairs are returnedforwardandforward_iternow allow you to specify on which device to store intermediate predictions- Support for setting optimizer param groups using wildcards (e.g.,
{'layer*.bias': {'lr': 0}}) - Computed gradients can now be processed by callbacks using
on_grad_computed - Support for
fit_paramsparameter which gets passed directly to the module - Add
skorch.helper.SliceDictso that you can usedictasXwith sklearn'sGridSearchCV, etc. - Add
Dockerfile
API changes
- Deprecated
use_cudaparameter in favor ofdeviceparameter skorch.utils.to_varis gone in favor ofskorch.utils.to_tensortraining_stepandvalidation_stepnow return adictwith the loss and the module's predictionpredictandpredict_probanow handle multiple outputs by assuming the first output to be the predictionNeuralNetClassifiernow only takeslogof prediction if the criterion is set toNLLLoss
Examples
- RNN sentiment classification
Communication
- We now run the
#skorchchannel on the PyTorch slack workspace
Contributors
A big thanks to our contributors who helped making this release possible:
- Felipe Ribeiro
- Grzegorz Rygielski
- Juri Paern
- Thomas Fan