Difficulty: Easy Tags: Activation Functions
Adobe's auto-brightness tool squashes an unbounded adjustment score into (0, 1) before applying it
as a blend factor: sigmoid, forward and backward, exactly as every deep learning framework
implements it.
sigma(x) = 1 / (1 + e^-x)
sigma'(x) = sigma(x) * (1 - sigma(x))
n
x_1 ... x_n
Two lines: sigma(x) and sigma'(x), 6 decimals each.
1 <= n <= 10^5, |x_i| <= 50Input
1
0.5
Output
0.622459
0.235004
No results yet
Run your code to check it against the examples, or submit to run every test.