relu function

double relu(
  1. double x
)

Rectified Linear Unit - Negative integers adjusted to 0, leaving positive ones untouched.

Implementation

double relu(double x) => max(0, x);