def predictFraud(row,model="GradientBoostingClassifier.p"): clf = pickle.load(open(model,"rb")) return clf.predict_proba(transformquery(transformliverequest(row)))[0][1]
def main(): train = balanceset(transformquery(getdf())) GenerateAllClassifiers(train) return