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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:3421–3436  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

3419
3420 @property
3421 def hyperparameters(self):
3422 """Return a dictionary containing the layer hyperparameters."""
3423 return {
3424 "layer": "Deconv2D",
3425 "pad": self.pad,
3426 "init": self.init,
3427 "in_ch": self.in_ch,
3428 "out_ch": self.out_ch,
3429 "stride": self.stride,
3430 "act_fn": str(self.act_fn),
3431 "kernel_shape": self.kernel_shape,
3432 "optimizer": {
3433 "cache": self.optimizer.cache,
3434 "hyperparameters": self.optimizer.hyperparameters,
3435 },
3436 }
3437
3438 def forward(self, X, retain_derived=True):
3439 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected