protected override Training CreateObject(NativeActivityContext context)
 {
     var min = MinIterations.Get(context);
     var max = MaxIterations.Get(context);
     IterationRepeatPars pars = null;
     if (min >= 1 && (max >= min))
     {
         pars = new IterationRepeatPars(min, max);
     }
     var network = GetFuncResult<NeuralNetwork>(context, "NeuralNetwork");
     return Training.CreateUnordered(network, pars);
 }
예제 #2
0
 public static Training CreateUnordered(NeuralNetwork network, IterationRepeatPars repeatPars = null)
 {
     return new Training(network, false, repeatPars);
 }
예제 #3
0
 Training(NeuralNetwork network, bool isStreamed, IterationRepeatPars repeatPars)
     : base(network, repeatPars)
 {
     Contract.Requires(network != null);
     Contract.Requires((isStreamed && repeatPars == null) || !isStreamed);
 }