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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:3922–3935  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

3920
3921 @property
3922 def hyperparameters(self):
3923 """Return a dictionary containing the layer hyperparameters."""
3924 return {
3925 "layer": "LSTMCell",
3926 "init": self.init,
3927 "n_in": self.n_in,
3928 "n_out": self.n_out,
3929 "act_fn": str(self.act_fn),
3930 "gate_fn": str(self.gate_fn),
3931 "optimizer": {
3932 "cache": self.optimizer.cache,
3933 "hyperparameters": self.optimizer.hyperparameters,
3934 },
3935 }
3936
3937 def forward(self, Xt):
3938 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected