Return a dictionary containing the layer hyperparameters.
(self)
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected