act method

  1. @override
Matrix act(
  1. dynamic inputs, {
  2. bool train = false,
})
override

Apply Layer's logic to the inputs

Implementation

@override
Matrix act(inputs, {bool train = false}) {
  if (type == NormalizationType.zScore) {
    return _zScore(inputs as Matrix);
  } else {
    return _minmax(inputs as Matrix);
  }
}