print '* Test Dataset Accuracy: %s' %(test_accuracy) print '* Test Dataset Error %s' %(test_error) print '----------------------------------------------------------------' print 'Dumping Results in \"test_results.txt\" file ' print '----------------------------------------------------------------' if __name__ == "__main__": arguments = getCommandParams(sys.argv[1:]) #mandatory args network_result_file= arguments["network"] femaleDataDir = arguments["femaledir"] maleDataDir = arguments["maledir"] network = pickleLoadObject(network_result_file) #optional args DEFAULT_SIGNAL_CLASS = avgActivationValue DEFAULT_SIGNAL_COUNT = 1 DEFAULT_RESULTS_FOLDER = 'test-dataset-runs' #default name of folder where to place the result files if "signalclass" in arguments: if arguments["signalclass"] == "mode": signalClass = modeActivationValue elif arguments["signalclass"] == "avg": signalClass = avgActivationValue else: signalClass = DEFAULT_SIGNAL_CLASS if "signalcount" in arguments: