-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMLproject
More file actions
64 lines (59 loc) · 1.99 KB
/
Copy pathMLproject
File metadata and controls
64 lines (59 loc) · 1.99 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
63
64
name: risco_credito_mlflow_project
python_env: python_env.yaml
entry_points:
prepare:
parameters:
n_samples: {type: int, default: 6000}
test_size: {type: float, default: 0.25}
random_state: {type: int, default: 42}
output_dir: {type: str, default: "data/processed"}
pipeline_id: {type: str, default: "manual"}
command: >
python src/prepare_data.py
--n-samples {n_samples}
--test-size {test_size}
--random-state {random_state}
--output-dir {output_dir}
--pipeline-id {pipeline_id}
train:
parameters:
model_name: {type: str, default: "random_forest"}
data_dir: {type: path, default: "data/processed/manual"}
random_state: {type: int, default: 42}
registered_model_name: {type: str, default: "risco_credito_project_model"}
pipeline_id: {type: str, default: "manual"}
command: >
python src/train.py
--model-name {model_name}
--data-dir {data_dir}
--random-state {random_state}
--registered-model-name {registered_model_name}
--pipeline-id {pipeline_id}
evaluate:
parameters:
model_uri: {type: str}
data_dir: {type: path, default: "data/processed/manual"}
threshold: {type: float, default: 0.5}
pipeline_id: {type: str, default: "manual"}
command: >
python src/evaluate.py
--model-uri {model_uri}
--data-dir {data_dir}
--threshold {threshold}
--pipeline-id {pipeline_id}
pipeline:
parameters:
model_name: {type: str, default: "random_forest"}
n_samples: {type: int, default: 6000}
test_size: {type: float, default: 0.25}
random_state: {type: int, default: 42}
threshold: {type: float, default: 0.5}
registered_model_name: {type: str, default: "risco_credito_project_model"}
command: >
python src/run_pipeline.py
--model-name {model_name}
--n-samples {n_samples}
--test-size {test_size}
--random-state {random_state}
--threshold {threshold}
--registered-model-name {registered_model_name}