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

Method __init__

numpy_ml/neural_nets/activations/activations.py:396–405  ·  view source on GitHub ↗

Identity activation function. Notes ----- :class:`Identity` is syntactic sugar for :class:`Affine` with slope = 1 and intercept = 0.

(self)

Source from the content-addressed store, hash-verified

394
395class Identity(Affine):
396 def __init__(self):
397 """
398 Identity activation function.
399
400 Notes
401 -----
402 :class:`Identity` is syntactic sugar for :class:`Affine` with
403 slope = 1 and intercept = 0.
404 """
405 super().__init__(slope=1, intercept=0)
406
407 def __str__(self):
408 """Return a string representation of the activation function"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected