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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:1321–1334  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

1319
1320 @property
1321 def hyperparameters(self):
1322 """Return a dictionary containing the layer hyperparameters."""
1323 return {
1324 "layer": "BatchNorm1D",
1325 "act_fn": None,
1326 "n_in": self.n_in,
1327 "n_out": self.n_out,
1328 "epsilon": self.epsilon,
1329 "momentum": self.momentum,
1330 "optimizer": {
1331 "cache": self.optimizer.cache,
1332 "hyperparameters": self.optimizer.hyperparameters,
1333 },
1334 }
1335
1336 def reset_running_stats(self):
1337 """Reset the running mean and variance estimates to 0 and 1."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected