Esempio n. 1
0
 def dtest_svm_training_pcss_error(self):
     self.pcssConfig["input_annotation_file_name"] = self.getErrorInputFile(
         "missingColumnsFile.txt")
     self.runner = pcssTools.TrainingBenchmarkRunner(self.pcssConfig)
     self.clearErrorFiles()
     self.runner.execute()
     self.checkErrorThrown("pcssError")
Esempio n. 2
0
 def dtest_svm_training_input_internal_error(self):
     self.pcssConfig["input_annotation_file_name"] = os.path.join(
         self.pcssConfig["home_test_directory"], "testInput",
         "svmTrainingAnnotationInput.txt")
     self.runner = pcssTools.TrainingBenchmarkRunner(self.pcssConfig)
     self.pcssConfig["jackknife_fraction"] = "fake"
     self.clearErrorFiles()
     self.runner.execute()
     self.checkErrorThrown("internalError")
Esempio n. 3
0
 def dtest_training_svm_runner(self):
     #self.pcssConfig["attribute_file_name"] = os.path.join(self.pcssConfig["pcss_directory"], "data", "context", "trainingFileAttributes.txt")
     self.pcssConfig["input_annotation_file_name"] = os.path.join(
         self.pcssConfig["home_test_directory"], "testInput",
         "svmTrainingAnnotationInput.txt")
     self.runner = pcssTools.TrainingBenchmarkRunner(self.pcssConfig)
     self.clearErrorFiles()
     self.runner.internalConfig["make_random_test_set"] = False
     self.runner.execute()
     self.assertFalse(os.path.exists(self.runner.pdh.getPcssErrorFile()))
     self.assertFalse(os.path.exists(
         self.runner.pdh.getInternalErrorFile()))
Esempio n. 4
0
 def readTrainingAnnotationInputFile(self, fileName):
     #self.setTrainingFileAttributes()
     self.runner = pcssTools.TrainingBenchmarkRunner(self.pcssConfig)
     self.reader = pcssIO.AnnotationFileReader(self.runner)
     self.reader.readAnnotationFile(fileName)
import pcssTools
import pcssCluster
import configobj

import sys
import os

configFileName = sys.argv[1]

pcssConfig = configobj.ConfigObj(configFileName)
#pcssConfig["attribute_file_name"] = os.path.join(pcssConfig["pcss_directory"], "data", "context", "svmTrainingAttributes.txt")
runner = pcssTools.TrainingBenchmarkRunner(pcssConfig)
runner.execute()

runner = pcssTools.LeaveOneOutBenchmarkRunner(pcssConfig)
runner.execute()

runner = pcssTools.CompleteSvmRunner(pcssConfig)
runner.execute()