/// <summary> /// /// </summary> #endregion #region Main function public NNTrainPatterns(NeuralNetwork neuronNet, MnistDatabase trainingSet, Preferences preferences, bool trainingDataReady, ManualResetEvent eventStop, ManualResetEvent eventStopped, HandwrittenRecogniration.Mainform form, List <Mutex> mutexs) { m_currentPatternIndex = 0; _bDataReady = trainingDataReady; _NN = neuronNet; _MnistDataSet = trainingSet; m_Preferences = preferences; m_nImages = (uint)_MnistDataSet.m_pImagePatterns.Count; _form = form; m_EventStop = eventStop; m_EventStopped = eventStopped; m_Mutexs = mutexs; m_cMisrecognitions = 0; _iNextPattern = 0; m_bNeedHessian = true; m_cBackprops = 0; _dMSE = 0; _nn = 0; _dMSE200 = 0; m_HiPerfTime = new HiPerfTimer(); GetGaussianKernel(m_Preferences.m_dElasticSigma); }
public NNTestPatterns(NeuralNetwork neuronNet, Preferences preferences, HandwrittenRecogniration.Mainform form, List <Mutex> mutexs) { m_currentPatternIndex = 0; _bDataReady = true; _NN = neuronNet; _iNextPattern = 0; m_EventStop = null; m_EventStopped = null; _form = form; m_HiPerfTime = new HiPerfTimer(); m_nImages = 0; _iMisNum = 0; //Initialize Gaussian Kernel m_Preferences = preferences; GetGaussianKernel(preferences.m_dElasticSigma); _MnistDataSet = null; m_Mutexs = mutexs; }
public NNTestPatterns(NeuralNetwork neuronNet, MnistDatabase testtingSet, Preferences preferences, bool testingDataReady, ManualResetEvent eventStop, ManualResetEvent eventStopped, HandwrittenRecogniration.Mainform form, List <Mutex> mutexs) { m_currentPatternIndex = 0; _bDataReady = testingDataReady; _NN = neuronNet; _iNextPattern = 0; m_EventStop = eventStop; m_EventStopped = eventStopped; _form = form; m_HiPerfTime = new HiPerfTimer(); m_nImages = (uint)testtingSet.m_pImagePatterns.Count; //Initialize Gaussian Kernel m_Preferences = preferences; GetGaussianKernel(preferences.m_dElasticSigma); _MnistDataSet = testtingSet; m_Mutexs = mutexs; }