Hi,
I’d like to point out a possible typo in the documentation for apoc.math.sigmoid
.
In the example provided:
RETURN 1 / (1 + exp(-1)) AS result;
The document states the result is:
0.2689414213699951
However, the correct result of this calculation is actually:
0.7310585786300049
It seems the documented result is for exp(1)
instead of exp(-1)
.
Additionally, I believe the example would be clearer and more intuitive if it directly used the APOC function like this:
RETURN apoc.math.sigmoid(1) AS result;
Which would return:
0.7310585786300049
This makes it easier for readers to understand the function behavior.
Thank you