test failure on new env setup
Still getting started with dnadna
, apologies if I missed a step.
Running pytest
on a new development install (with jsonschema
version altered due to #145 ), I get the following error:
=================================== FAILURES ===================================
_________________ [doctest] dnadna.optim.Optimizer.from_config _________________
058 >>> mod = torch.nn.Linear(1, 1) # a dummy module
059 >>> optim = Optimizer.from_config({
060 ... 'name': 'Adam',
061 ... 'params': {
062 ... 'learning_rate': 0.2,
063 ... 'weight_decay': 0.01
064 ... }
065 ... }, mod.parameters())
066 ...
067 >>> optim
Differences (unified diff with -expected +actual):
@@ -3,6 +3,11 @@
amsgrad: False
betas: [0.9, 0.999]
+ capturable: False
+ differentiable: False
eps: 1e-08
+ foreach: None
+ fused: False
lr: 0.2
+ maximize: False
weight_decay: 0.01
)
/home/romain/inria/dnadna/dnadna/optim.py:67: DocTestFailure