def sub():
    with open(submission, 'w') as outfile:
        for t, date, ID, x, y, isApp in data(test, D):
            if not isApp:
                p = learner1.predict(x)
            else:
                p = learner2.predict(x)
            outfile.write('%f\n' % p)
dataset/ETHPy150Open infinitezxc/kaggle-avazu/script/ftrl_2.py/sub/original