MCPcopy
hub / github.com/explosion/spaCy / create_optimizer

Method create_optimizer

spacy/language.py:1471–1474  ·  view source on GitHub ↗

Create an optimizer, usually using the [training.optimizer] config.

(self)

Source from the content-addressed store, hash-verified

1469 return _replace_numpy_floats(results)
1470
1471 def create_optimizer(self):
1472 """Create an optimizer, usually using the [training.optimizer] config."""
1473 subconfig = {"optimizer": self.config["training"]["optimizer"]}
1474 return registry.resolve(subconfig)["optimizer"]
1475
1476 @contextmanager
1477 def use_params(self, params: Optional[dict]):

Callers 4

updateMethod · 0.95
rehearseMethod · 0.95
initializeMethod · 0.95
resume_trainingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected