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

Method set_params

numpy_ml/neural_nets/layers/layers.py:4213–4231  ·  view source on GitHub ↗

Set the layer parameters from a dictionary of values. Parameters ---------- summary_dict : dict A dictionary of layer parameters and hyperparameters. If a required parameter or hyperparameter is not included within `summary_dict`,

(self, summary_dict)

Source from the content-addressed store, hash-verified

4211 return self.cell.parameters
4212
4213 def set_params(self, summary_dict):
4214 """
4215 Set the layer parameters from a dictionary of values.
4216
4217 Parameters
4218 ----------
4219 summary_dict : dict
4220 A dictionary of layer parameters and hyperparameters. If a required
4221 parameter or hyperparameter is not included within `summary_dict`,
4222 this method will use the value in the current layer's
4223 :meth:`summary` method.
4224
4225 Returns
4226 -------
4227 layer : :doc:`Layer <numpy_ml.neural_nets.layers>` object
4228 The newly-initialized layer.
4229 """
4230 self = super().set_params(summary_dict)
4231 return self.cell.set_parameters(summary_dict)
4232
4233 def freeze(self):
4234 """

Callers 3

init_from_dictMethod · 0.45
init_from_dictMethod · 0.45
set_paramsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected