예제 #1
0
        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;
        }
예제 #2
0
        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;
        }