Identity activation function. Notes ----- :class:`Identity` is syntactic sugar for :class:`Affine` with slope = 1 and intercept = 0.
(self)
| 394 | |
| 395 | class 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""" |