Linear
When the output value is proportional to the input value anywhere in the input domain, then the function is said to be a linear function. So, a linear function is just multiplying something with the input.
PYTHON
1class LinearActivation():
2 def __init__(self, a):
3 self.a = a
4
5 def forward(X):
6 return a*X