def runTest(train,test,learner,totalClassifications=None,writeConfusion=False):
    start = datetime.datetime.today()
    classifier = learner(train)
    end = datetime.datetime.today()
    print 'Start time %s, End time %s, Dif %s'%(str(start),str(end),str(end-start))
    resultTrain=testSuccess(classifier,train,totalClassifications)
    resultTest=testSuccess(classifier,test,totalClassifications)
    if writeConfusion:
        writeConfusionToFile(resultTest[2],test,'Confusion of %s.csv'%learner.name)
    return (resultTrain,resultTest,classifier)
dataset/ETHPy150Open andreykurenkov/emailinsight/pyScripts/orangeClassify.py/runTest/original