def getLearningCurves():
	tree = Orange.classification.tree.TreeLearner(name='Tree',same_majority_pruning=True)
	successes = [['Number of instances','Tree Train','Tree Test' 'NN Train','NN Test',\
				 'KNN Train','KNN Test','SVM Train','SVM Test', 'Boosting Train', 'Boosting Test']]
	for i in range(1,2):
		newNumInstances = 200-int((i/1)*numInstances)
		success = [newNumInstances]
		dataSubset = data.get_items_ref(range(newNumInstances))
		success.append(testTreeLearning(dataSubset,same_majority_pruning=True))
		success.append(testNeuralNetLearning(dataSubset,n_mid=40,normalize=False))
		success.append(testKNNLearning(dataSubset))
		success.append(testSVMLearning(dataSubset,gamma=0.005))
		success.append(testBoostLearning(dataSubset,tree,t=4))
		successes.append(success)
		writeToCVS('learningCurves.csv',successes)
dataset/ETHPy150Open andreykurenkov/emailinsight/pyScripts/orangeClassify.py/getLearningCurves/swapped operands of `-`