sigmoid static method

num sigmoid(
  1. num value
)

Implementation

static num sigmoid(num value) {
  return 1/(1+math.exp(-value));
}