-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_linear_benchmarks_VM.py
More file actions
49 lines (39 loc) · 1.55 KB
/
run_linear_benchmarks_VM.py
File metadata and controls
49 lines (39 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from KFT.benchmarks.linear_regression import linear_job_class
if __name__ == '__main__':
args = dict()
args['y_name'] = 'rating'
args['data_path'] = 'movielens_parquet_hashed_scaled'
args['SAVE_PATH'] = './linear_movielens_benchmark'
args['bayesian'] = False
args['cuda'] = False
args['hyperopts'] = 20
args['regression'] = True
args['its'] = 100
args['chunk'] = 50
for i in [1,2,3,4,5]:
l = linear_job_class(seed=i,
y_name=args['y_name']
,data_path=args['data_path']
,save_path=args['SAVE_PATH']
,params=args)
l.run()
args['y_name'] = 'Bottles Sold'
args['data_path'] = 'alcohol_sales_parquet_hashed_scaled'
args['SAVE_PATH'] = './linear_alcohol_benchmark'
for i in [1,2,3,4,5]:
l = linear_job_class(seed=i,
y_name=args['y_name']
,data_path=args['data_path']
,save_path=args['SAVE_PATH']
,params=args)
l.run()
args['y_name'] = 'total_sales'
args['data_path'] = 'benchmark_data_private_hashed_scaled'
args['SAVE_PATH'] = './private_linear_benchmark'
for i in [1,2,3,4,5]:
l = linear_job_class(seed=i,
y_name=args['y_name']
,data_path=args['data_path']
,save_path=args['SAVE_PATH']
,params=args)
l.run()