|
|
|
|
|
by maffydub
2418 days ago
|
|
I'm not sure. According to Wikipedia (https://en.wikipedia.org/wiki/Differentiable_function), > a differentiable function of one real variable is a function whose derivative exists at each point in its domain Most programs aren't differentiable functions because conditionals aren't in general differentiable. For example "if x > 0 { 1 } else { -1 }" doesn't have a derivative at 0 (and so, by the definition above) isn't differentiable at 0. ...or have I missed something? |
|
Case in point, the currently most used activation function in neural nets, the rectified linear unit
ReLU(x) = max(x, 0),
is clearly not differentiable everywhere either.