Пример #1
0
 public ExperimentWatcher(ConsoleWriter writer, int snapshotLength, string targetProcessName, IList<HistorySnapshot> sourceSnapshots)
 {
     Writer = writer;
     Writer.LineIndex++;
     ExperimentInstance = new Experiment(snapshotLength, targetProcessName, sourceSnapshots);
     ExperimentInstance.ComputationStarted += new EventHandler(ExperimentInstance_ComputationStarted);
     ExperimentInstance.LoadingStarted += new EventHandler(ExperimentInstance_LoadingStarted);
     ExperimentInstance.LoadingFinished += new EventHandler(ExperimentInstance_LoadingFinished);
     ExperimentInstance.SnapshotLoaded += new EventHandler<ProgressEventArgs>(ExperimentInstance_SnapshotLoaded);
     ExperimentInstance.Trained += new EventHandler<ProgressEventArgs>(ExperimentInstance_Trained);
     ExperimentInstance.TrainingFinished += new EventHandler(ExperimentInstance_TrainingFinished);
     ExperimentInstance.TrainingStarted += new EventHandler(ExperimentInstance_TrainingStarted);
     ExperimentInstance.ResultObtained += new EventHandler<ProgressEventArgs>(ExperimentInstance_ResultObtained);
     ExperimentInstance.ComputationFinished += new EventHandler<ComputationFinishedEventArgs>(ExperimentInstance_ComputationFinished);
 }
Пример #2
0
 public ResultPrinter(StreamWriter writer, ConsoleWriter console)
 {
     this.writer = writer;
     this.console = console;
 }