Exemple #1
0
 public void SetActivation(string activationType)
 {
     if (activationType == "tanh")
     {
         Activation = Activations.Tanh();
     }
     else if (activationType == "tanhAbs")
     {
         Activation = Activations.TanhAbs();
     }
     else if (activationType == "sigmoid")
     {
         Activation = Activations.Sigmoid();
     }
     else if (activationType == "sin")
     {
         Activation = Activations.Sin();
     }
     else if (activationType == "fract")
     {
         Activation = Activations.Fract();
     }
     else if (activationType == "rescale")
     {
         Activation = Activations.Rescale();
     }
     else if (activationType == "downscale")
     {
         Activation = Activations.Downscale();
     }
     else if (activationType == "gaussian")
     {
         Activation = Activations.Gaussian();
     }
     else if (activationType == "square")
     {
         Activation = Activations.Square();
     }
     else if (activationType == "abs")
     {
         Activation = Activations.Abs();
     }
     else if (activationType == "cos")
     {
         Activation = Activations.Cos();
     }
     else if (activationType == "linear")
     {
         Activation = Activations.Linear();
     }
     else if (activationType == "random")
     {
         Activation = Activations.Random();
     }
 }