public void Add(TrainingStatus trainingStatus) { this.m_currentSavepoint = new TrainingSavepoint(m_networkContainer.Network, trainingStatus); this.Add(m_currentSavepoint); this.OnCurrentSavepointChanged(); this.OnSavepointRegistered(); }
//--------------------------------------------- #region Constructor public TrainingSavepoint(Network network, TrainingStatus networkStatus) { this.memoryStream = new MemoryStream(); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(memoryStream, network); this.memoryStream.Seek(0, SeekOrigin.Begin); this.networkStatus = networkStatus; this.creationTime = DateTime.Now; }
public TrainingStatus Copy() { TrainingStatus status = new TrainingStatus(); status.epoch = epoch; status.progress = progress; status.trainingError = trainingError; status.validationError = validationError; status.epochsPerSecond = epochsPerSecond; status.trainingRound = trainingRound; return(status); }
public TrainingStatus Copy() { TrainingStatus status = new TrainingStatus(); status.epoch = epoch; status.progress = progress; status.trainingError = trainingError; status.validationError = validationError; status.epochsPerSecond = epochsPerSecond; status.trainingRound = trainingRound; return status; }
public TrainingHistoryEvent(string text, TrainingStatus status, TrainingOptions options) : this(text, String.Empty, status, options) { }
public TrainingHistoryEvent(string text, string detail, TrainingStatus status, TrainingOptions options) : this(text, detail, status) { this.time = DateTime.Now; this.options = options.Copy(); }
public TrainingHistoryEvent(string text, string detail, TrainingStatus status) : this(text, detail) { this.status = status.Copy(); }
public void Add(string text, TrainingStatus status, TrainingOptions options) { Add(new TrainingHistoryEvent(text, status, options)); }
public void Add(string text, string detail, TrainingStatus status) { Add(new TrainingHistoryEvent(text, detail, status)); }