apoc.math.sigmoidPrime

Details

Syntax

apoc.math.sigmoidPrime(value)

Description

Returns the sigmoid prime [ sigmoid(val) * (1 - sigmoid(val)) ] of the given value.

Arguments

Name

Type

Description

value

FLOAT

An angle in radians.

Returns

FLOAT

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
Results
result

0.19661193324148185