-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparams.yaml
72 lines (55 loc) · 1.76 KB
/
params.yaml
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
63
64
65
66
67
68
69
70
71
base:
project: Consignment-Pricing-Using-MLops-DVC
random_state: 180
target_data: line_item_value
data_source:
s3_source: data_given/Consignment_pricing_raw.csv
load_data:
raw_dataset: data/raw/Consignment_pricing_raw.csv
data:
processed: data/processed/Consignment_pricing_processed.csv
final_data:
transformed_data: data/transformed_data/Consignment_pricing_transformed.csv
raw_data:
raw: consignment_data/Consignment_pricing_raw.csv
columns:
select: ["pq_#",'po_/_so_#', 'asn/dn_#','country', 'fulfill_via', 'vendor_inco_term',
'sub_classification', 'unit_of_measure_(per_pack)',
'line_item_quantity', 'line_item_value', 'pack_price', 'unit_price',
'first_line_designation', 'freight_cost_(usd)', 'shipment_mode',
'line_item_insurance_(usd)', 'days_to_process']
split_data:
train_path: data/split_data/Consignment_pricing_train.csv
test_path: data/split_data/Consignment_pricing_test.csv
split_ratio: 0.20
model_dirs: saved_models
estimators:
RandomForestRegressor:
params:
criterion: mae
max_deapth: 10
min_sample_leaf: 2
min_sample_split: 8
n_estimators: 80
oob_score: True
webapp_model_dir: prediction_service/model/model_rf.pkl
data1:
training_data: data/main_data/train_data.csv
test_data: data/main_data/test_data.csv
processed: data/processed/Consignment_pricing_processed.csv
RandomizedSearchCV:
n_iter: 3
scoring: r2
verbose: 5
cv: 10
n_jobs: -1
return_train_score: True
params:
n_estimators: [5,10,20,40,80]
criterion: ['absolute_error', 'friedman_mse', 'poisson', 'squared_error']
max_depth: [2,5,10]
min_samples_split : [2,4,8,12]
min_samples_leaf: [2,4,8,10]
reports:
scores: reports/scores.json
params: reports/params.json