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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:2438–2452  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

2436
2437 @property
2438 def hyperparameters(self):
2439 """Return a dictionary containing the layer hyperparameters."""
2440 return {
2441 "layer": "SparseEvolutionary",
2442 "init": self.init,
2443 "zeta": self.zeta,
2444 "n_in": self.n_in,
2445 "n_out": self.n_out,
2446 "epsilon": self.epsilon,
2447 "act_fn": str(self.act_fn),
2448 "optimizer": {
2449 "cache": self.optimizer.cache,
2450 "hyperparameters": self.optimizer.hyperparameters,
2451 },
2452 }
2453
2454 def forward(self, X, retain_derived=True):
2455 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected