-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtuning.sh
More file actions
executable file
·62 lines (56 loc) · 1.59 KB
/
tuning.sh
File metadata and controls
executable file
·62 lines (56 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
reset
use_complete_data=false
debug=false
# rmse, pearson, spearman, ndcg, ndcg_at_k, regret, regret_at_k
objective=spearman
model_seed=10
if $use_complete_data; then
# complete has 194 datasets
train_path=./data/complete_classification_train.json
validation_size=25
validation_split_seed=3101978347
metafeature_subset=all
results_dir=./results
tuning_output_dir=./tuning_output
else
# small has 11 datasets
train_path=./data/small_classification_train.json
validation_size=2
validation_split_seed=5460650386
metafeature_subset=all
results_dir=./dev_results
tuning_output_dir=./dev_tuning_output
fi
model=dag_transformer
n_generations=2
population_size=2
# tuning_type=genetic
tuning_type=bayesian
n_calls=5
# warm_start="path/to/warm/start.csv"
if $debug; then
command='pudb3 dna/__main__.py'
else
command='python3 -m dna'
fi
$command tune \
--model $model \
--model-config-path ./model_configs/${model}_config.json \
--tuning-config-path ./tuning_configs/${model}_tuning_config.json \
--tuning-output-dir $tuning_output_dir \
--problem regression rank \
--objective $objective \
--train-path $train_path \
--metafeature-subset $metafeature_subset \
--test-size $validation_size \
--split-seed $validation_split_seed \
--model-seed $model_seed \
--output-dir $results_dir \
--n-generations $n_generations \
--population-size $population_size \
--tuning-type $tuning_type \
--n-calls $n_calls \
--verbose \
--metafeatures-type deep
# --warm-start-path $warm_start \