示例#1
0
        } /* BlockEnd */

        private void  CleanUpMemory()
        {
            if (loadingThreadRunning)
            {
                CancelProcessing();
            }

            if (confusionMatrix != null)
            {
                confusionMatrix.Close();
                confusionMatrix = null;
            }

            if (trainingModel != null)
            {
                BlockStart();
                trainingModel = null;
                BlockEnd();
            }
        } /* CleanUpMemory */
示例#2
0
        } /* ValidateTrainingModel */

        private void  LoadTrainingModelAndGroundTruth()
        {
            if (!AreParametersValid())
            {
                return;
            }

            SaveConfiguration();

            EnableComponentsForProcessing();

            if (crossValidation)
            {
                GroundTruth.Text = curSelModel.RootDirExpanded();
            }

            confusionMatrix = new ConfusionMatrix(curSelModel, origClassifierClasses, trainingModel, trainingModelName, GroundTruth.Text, trainingLevel, predictionLevel);

            loadingThread = new Thread(new ThreadStart(LoadData));
            loadingThread.Start();
        } /* LoadTrainingModels */