MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / copy

Method copy

numpy_ml/neural_nets/optimizers/optimizers.py:33–35  ·  view source on GitHub ↗

Return a copy of the optimizer object

(self)

Source from the content-addressed store, hash-verified

31 self.cur_step = 0
32
33 def copy(self):
34 """Return a copy of the optimizer object"""
35 return deepcopy(self)
36
37 def set_params(self, hparam_dict=None, cache_dict=None):
38 """Set the parameters of the optimizer object from a dictionary"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected