Exemplo n.º 1
0
 public LearningException(string message, LearningStage stage) : base(message)
 {
 }
Exemplo n.º 2
0
 public EvaluationException(string message, LearningStage stage) : base(message)
 {
 }
Exemplo n.º 3
0
        public static (LearningPipeline, bool, string, LearningStage, Microsoft.Extensions.Logging.ILogger) ProcessNextStep(this(LearningPipeline, bool, string, LearningStage, Microsoft.Extensions.Logging.ILogger) state, Action <LearningPipeline> del, LearningStage stage)
        {
            (LearningPipeline, bool, string, LearningStage, Microsoft.Extensions.Logging.ILogger)result;
            try
            {
                del(state.Item1);
                result = (state.Item1, true, "OK", stage, state.Item5);
                state.Item5.LogInformation($"Stage {state.Item4.ToString()} processed correct");
            }
            catch (Exception ex)
            {
                result = (state.Item1, false, ex.Message, stage, state.Item5);
            }

            return(result);
        }