apoc.math.sigmoidPrime
Syntax |
|
||
Description |
Returns the sigmoid prime [ sigmoid(val) * (1 - sigmoid(val)) ] of the given value. |
||
Arguments |
Name |
Type |
Description |
|
|
An angle in radians. |
|
Returns |
|
Usage Examples
Both apoc.math.sigmoidPrime()
and Cypher’s exp()
function can be used to return the sigmoid of a value.
apoc.math.sigmoidPrime
WITH -1 AS x
RETURN apoc.math.sigmoidPrime(x) AS result;
Cypher’s exp() function
WITH -1 AS x
WITH x, 1 / (1 + exp(-x)) AS cypherSigmoid
RETURN cypherSigmoid * (1 - cypherSigmoid) AS result
result |
---|
0.19661193324148185 |