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

Method hyperparameters

numpy_ml/neural_nets/layers/layers.py:3218–3233  ·  view source on GitHub ↗

Return a dictionary containing the layer hyperparameters.

(self)

Source from the content-addressed store, hash-verified

3216
3217 @property
3218 def hyperparameters(self):
3219 """Return a dictionary containing the layer hyperparameters."""
3220 return {
3221 "layer": "Pool2D",
3222 "act_fn": None,
3223 "pad": self.pad,
3224 "mode": self.mode,
3225 "in_ch": self.in_ch,
3226 "out_ch": self.out_ch,
3227 "stride": self.stride,
3228 "kernel_shape": self.kernel_shape,
3229 "optimizer": {
3230 "cache": self.optimizer.cache,
3231 "hyperparameters": self.optimizer.hyperparameters,
3232 },
3233 }
3234
3235 def forward(self, X, retain_derived=True):
3236 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected