mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
remove ops argument for Adam
This commit is contained in:
parent
79d4f196e5
commit
047f3d7d94
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue
Block a user