sigmoid function

Matrix sigmoid(
  1. Matrix matrix
)

sigmoid of a matrix

  • matrix The matrix to find the sigmoid
  • Returns The new matrix

Implementation

Matrix sigmoid(Matrix matrix) {
  return matrix.performFunction((x) => 1 / (1 + exp(-x)));
}