88f0bd8a9185c31ca8d76a95d542b9f3e372852f,thinc/tests/test_optimizers.py,,test_optimizers_from_config,#Any#,48
Before Change
def test_optimizers_from_config(name):
learn_rate = 0.123
cfg = {"@optimizers": name, "learn_rate": learn_rate}
resolved, _ = registry.resolve({"config": cfg})
optimizer = resolved["config"]
assert optimizer.learn_rate == learn_rate
After Change
def test_optimizers_from_config(name):
learn_rate = 0.123
cfg = {"@optimizers": name, "learn_rate": learn_rate}
optimizer = registry.resolve({"config": cfg})["config"]
assert optimizer.learn_rate == learn_rate
def test_optimizer_schedules_from_config(schedule_valid):
In pattern: SUPERPATTERN
Frequency: 15
Non-data size: 3
Instances
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_optimizers.py
Class Name:
Method Name: test_optimizers_from_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_handle_generic_model_type
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_partials_from_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_validate_generator
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_optimizers.py
Class Name:
Method Name: test_optimizer_schedules_from_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/layers/test_layers_api.py
Class Name:
Method Name: test_layers_from_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/layers/test_transforms.py
Class Name:
Method Name: check_transform
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_loss.py
Class Name:
Method Name: test_loss_from_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_optimizer_config
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/layers/test_layers_api.py
Class Name:
Method Name: test_layers_with_residual
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_resolve_no_schema
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_objects_from_config
Project Name: sahana/eden
Commit Name: fd21989b70a6184050e99caad624701089366e93
Time: 2019-02-07
Author: dominic@nursix.org
File Name: modules/s3/s3filter.py
Class Name: S3HierarchyFilter
Method Name: variable
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_config.py
Class Name:
Method Name: test_partials_from_config_nested
Project Name: explosion/thinc
Commit Name: 88f0bd8a9185c31ca8d76a95d542b9f3e372852f
Time: 2020-09-27
Author: ines@ines.io
File Name: thinc/tests/test_initializers.py
Class Name:
Method Name: test_initializer_from_config