def run_rf_cross(options): global filename_full, filename1, filename2, testName jvm_helper = classify.cw3_helper() mlp = classify.cw3_classifier() mlp.load_data(filename_full) mlp.run_crossval("results/" + str(testName), "Random Forest", "weka.classifiers.trees.RandomForest", options)
def run_j48_cross(options): global filename1, filename2, testName jvm_helper = classify.cw3_helper() j48_cross = classify.cw3_classifier() j48_cross.load_data_seperate(filename1, filename2) j48_cross.run_crossval("results/" + str(testName), "J48", "weka.classifiers.trees.J48", options)
def run_rf_split(options): global filename_full, filename1, filename2, testName jvm_helper = classify.cw3_helper() mlp = classify.cw3_classifier() # mlp.load_data_seperate(filename1,filename2) mlp.load_data_split(filename_full, 30) mlp.run_split("results/" + str(testName), "Random Forest", "weka.classifiers.trees.RandomForest", options)
def run_mlp_split(options): global filename_full, filename1, filename2, testName jvm_helper = classify.cw3_helper() mlp = classify.cw3_classifier() mlp.load_data_split(filename_full, 30) # mlp.load_data_seperate(filename1,filename2) mlp.run_split("results/" + str(testName), "MLP", "weka.classifiers.functions.MultilayerPerceptron", options)
def run_j48_holdout(options): global filename_full, filename1, filename2, testName jvm_helper = classify.cw3_helper() j48_cross = classify.cw3_classifier() # j48_cross.load_data_seperate(filename1,filename2) j48_cross.load_data_split(filename_full, 30) j48_cross.run_split("results/" + str(testName), "J48", "weka.classifiers.trees.J48", options)