Ejemplo n.º 1
0
        private void LogExecutionCompleted(IExecutionHistory executionHistory)
        {
            var command = new AuditCommand
            {
                Type             = executionHistory.AuditType,
                ExecutionHistory = executionHistory as ExecutionHistory
            };

            Publish(Serializer.Serialize(command));
        }
Ejemplo n.º 2
0
 public void AddForward(IExecutionHistory action, Func <IBackpropagation> callback) => _forward.Add(action);
Ejemplo n.º 3
0
 public void AddForward(IExecutionHistory action, Func <IBackpropagation> callback)
 {
     // TODO: wrap the backpropagation?
     _context.AddForward(new TrainingAction(_wrapper, action.Data, action.Source), callback);
 }
Ejemplo n.º 4
0
 public void ExecutionSucceeded(IExecutionHistory executionHistory)
 {
     LogExecutionCompleted(executionHistory);
 }
Ejemplo n.º 5
0
 public void ExecutionFailed(IExecutionHistory executionHistory)
 {
     LogExecutionCompleted(executionHistory);
 }