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