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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:1074–1087  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

1072
1073 @property
1074 def hyperparameters(self):
1075 """Return a dictionary containing the layer hyperparameters."""
1076 return {
1077 "layer": "BatchNorm2D",
1078 "act_fn": None,
1079 "in_ch": self.in_ch,
1080 "out_ch": self.out_ch,
1081 "epsilon": self.epsilon,
1082 "momentum": self.momentum,
1083 "optimizer": {
1084 "cache": self.optimizer.cache,
1085 "hyperparameters": self.optimizer.hyperparameters,
1086 },
1087 }
1088
1089 def reset_running_stats(self):
1090 """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