scale features to avoid underflow in sigmoid calculation