Exemple #1
0
        protected IContext _Process(IExecutionContext executionContext, IMiniBatchSequence sequence)
        {
            var context = new TrainingEngineContext(executionContext, sequence, _learningContext);

            _input.ExecuteForward(context, 0);
            while (context.HasNext)
            {
                context.ExecuteNext();
            }
            return(context);
        }
Exemple #2
0
        protected IContext _Process(IExecutionContext executionContext, IGraphData data)
        {
            var context = new TrainingEngineContext(executionContext, data, _learningContext);

            _input.ExecuteForward(context, 0);
            while (context.HasNext)
            {
                context.ExecuteNext();
            }
            return(context);
        }
Exemple #3
0
        protected IContext _ConcurentProcess(IExecutionContext executionContext, IGraphData data)
        {
            var learningContext = new LearningContext(_lap, _learningContext.LearningRate,
                                                      _learningContext.BatchSize, TrainingErrorCalculation.None, true);
            var context = new TrainingEngineContext(executionContext, data, learningContext);

            _input.ExecuteForward(context, 0);
            while (context.HasNext)
            {
                context.ExecuteNext();
            }
            return(context);
        }