Exemplo n.º 1
0
     eval_path='../data/ds1_valid.csv',
     pred_path='output/p01e_pred_1.txt')

p01e(train_path='../data/ds2_train.csv',
     eval_path='../data/ds2_valid.csv',
     pred_path='output/p01e_pred_2.txt')

from p02cde_posonly import main as p02
p02(train_path='../data/ds3_train.csv',
    valid_path='../data/ds3_valid.csv',
    test_path='../data/ds3_test.csv',
    pred_path='output/p02X_pred.txt')

from p03d_poisson import main as p03
p03(lr=1e-7,
    train_path='../data/ds4_train.csv',
    eval_path='../data/ds4_valid.csv',
    pred_path='output/p03d_pred.txt')

from p05b_lwr import main as p05b
p05b(tau=5e-1,
     train_path='../data/ds5_train.csv',
     eval_path='../data/ds5_valid.csv')

from p05c_tau import main as p05c
p05c(tau_values=[3e-2, 5e-2, 1e-1, 5e-1, 1e0, 1e1],
     train_path='../data/ds5_train.csv',
     valid_path='../data/ds5_valid.csv',
     test_path='../data/ds5_test.csv',
     pred_path='output/p05c_pred.txt')
Exemplo n.º 2
0
import argparse

from p05b_lwr import main as p05b

parser = argparse.ArgumentParser()
parser.add_argument('p_num',
                    nargs='?',
                    type=int,
                    default=0,
                    help='Problem number to run, 0 for all problems.')
args = parser.parse_args()

if args.p_num == 0 or args.p_num == 5:
    p05b(tau=5,
         train_path='output/flights_pass_1_na_0.csv',
         eval_path='testinput/all_test_with_failures_clean.csv')