Esempio n. 1
0
        public void Add(TrainingStatus trainingStatus)
        {
            this.m_currentSavepoint = new TrainingSavepoint(m_networkContainer.Network, trainingStatus);
            this.Add(m_currentSavepoint);

            this.OnCurrentSavepointChanged();
            this.OnSavepointRegistered();
        }
Esempio n. 2
0
        //---------------------------------------------


        #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;
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 public TrainingHistoryEvent(string text, TrainingStatus status, TrainingOptions options)
     : this(text, String.Empty, status, options)
 {
 }
Esempio n. 6
0
 public TrainingHistoryEvent(string text, string detail, TrainingStatus status, TrainingOptions options)
     : this(text, detail, status)
 {
     this.time    = DateTime.Now;
     this.options = options.Copy();
 }
Esempio n. 7
0
 public TrainingHistoryEvent(string text, string detail, TrainingStatus status) : this(text, detail)
 {
     this.status = status.Copy();
 }
Esempio n. 8
0
 public void Add(string text, TrainingStatus status, TrainingOptions options)
 {
     Add(new TrainingHistoryEvent(text, status, options));
 }
Esempio n. 9
0
 public void Add(string text, string detail, TrainingStatus status)
 {
     Add(new TrainingHistoryEvent(text, detail, status));
 }