Ejemplo n.º 1
0
        /// <summary>
        /// Displays information about the readout unit regression progress.
        /// </summary>
        /// <param name="buildingState">Current state of the regression process</param>
        /// <param name="foundBetter">Indicates that the best readout unit was changed as a result of the performed epoch</param>
        protected void OnRegressionEpochDone(TrainedNetworkBuilder.BuildingState buildingState, bool foundBetter)
        {
            int reportEpochsInterval = 5;

            //Progress info
            if (foundBetter ||
                (buildingState.Epoch % reportEpochsInterval) == 0 ||
                buildingState.Epoch == buildingState.MaxEpochs ||
                (buildingState.Epoch == 1 && buildingState.RegrAttemptNumber == 1)
                )
            {
                //Build progress report message
                string progressText = buildingState.GetProgressInfo(4);
                //Report the progress
                _log.Write(progressText, !(buildingState.Epoch == 1 && buildingState.RegrAttemptNumber == 1));
            }
            return;
        }
Ejemplo n.º 2
0
 private void OnRegressionEpochDone(TrainedNetworkBuilder.BuildingState buildingState, bool foundBetter)
 {
     //Only raise up
     RegressionEpochDone(buildingState, foundBetter);
     return;
 }