} /* BlockEnd */ private void CleanUpMemory() { if (loadingThreadRunning) { CancelProcessing(); } if (confusionMatrix != null) { confusionMatrix.Close(); confusionMatrix = null; } if (trainingModel != null) { BlockStart(); trainingModel = null; BlockEnd(); } } /* CleanUpMemory */
} /* 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 */