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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:2076–2088  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

2074
2075 @property
2076 def hyperparameters(self):
2077 """Return a dictionary containing the layer hyperparameters."""
2078 return {
2079 "layer": "FullyConnected",
2080 "init": self.init,
2081 "n_in": self.n_in,
2082 "n_out": self.n_out,
2083 "act_fn": str(self.act_fn),
2084 "optimizer": {
2085 "cache": self.optimizer.cache,
2086 "hyperparameters": self.optimizer.hyperparameters,
2087 },
2088 }
2089
2090 def forward(self, X, retain_derived=True):
2091 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected