public LearningException(string message, LearningStage stage) : base(message) { }
public EvaluationException(string message, LearningStage stage) : base(message) { }
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); }