remove ops argument for Adam

This commit is contained in:
svlandeg 2020-05-15 13:25:00 +02:00
parent 79d4f196e5
commit 047f3d7d94
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def _train_parser(parser):
fix_random_seed(1)
parser.add_label("left")
parser.begin_training([], **parser.cfg)
sgd = Adam(0.001, ops=NumpyOps())
sgd = Adam(0.001)
for i in range(5):
losses = {}
@ -42,7 +42,7 @@ def _train_parser(parser):
def test_add_label(parser):
parser = _train_parser(parser)
parser.add_label("right")
sgd = Adam(0.001, ops=NumpyOps())
sgd = Adam(0.001)
for i in range(100):
losses = {}
doc = Doc(parser.vocab, words=["a", "b", "c", "d"])