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);
 }
Exemplo n.º 2
0
 public static Training CreateUnordered(NeuralNetwork network, IterationRepeatPars repeatPars = null)
 {
     return new Training(network, false, repeatPars);
 }
Exemplo n.º 3
0
 Training(NeuralNetwork network, bool isStreamed, IterationRepeatPars repeatPars)
     : base(network, repeatPars)
 {
     Contract.Requires(network != null);
     Contract.Requires((isStreamed && repeatPars == null) || !isStreamed);
 }