Activation.random constructor

Activation.random()

Implementation

factory Activation.random() {
  var activations = <Activation>[];
  activations.addAll([
    Sigmoid(),
    ReLU(),
    Tanh(),
    Gaussian()]
  );
  activations.shuffle();
  return activations.first;
}