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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
| kubectl get pods -n fate-9999 | grep client
返回
client-5fcd4fdcfd-nqvrz 1/1 Running 0 2d1h
获取client容器ID
kubectl exec -it client-5fcd4fdcfd-nqvrz -n fate-9999 bash
修改文件
cat > fateflow/examples/lr/test_hetero_lr_job_conf.json <<EOF
{
"dsl_version": "2",
"initiator": {
"role": "guest",
"party_id": 10004
},
"role": {
"guest": [
10004
],
"host": [
10001
],
"arbiter": [
10001
]
},
"job_parameters": {
"common": {
"task_parallelism": 2,
"computing_partitions": 8,
"task_cores": 4,
"auto_retries": 1
}
},
"component_parameters": {
"common": {
"intersection_0": {
"intersect_method": "raw",
"sync_intersect_ids": true,
"only_output_key": false
},
"hetero_lr_0": {
"penalty": "L2",
"optimizer": "rmsprop",
"alpha": 0.01,
"max_iter": 3,
"batch_size": 320,
"learning_rate": 0.15,
"init_param": {
"init_method": "random_uniform"
}
}
},
"role": {
"guest": {
"0": {
"reader_0": {
"table": {
"name": "breast_hetero_guest",
"namespace": "experiment"
}
},
"dataio_0": {
"with_label": true,
"label_name": "y",
"label_type": "int",
"output_format": "dense"
}
}
},
"host": {
"0": {
"reader_0": {
"table": {
"name": "breast_hetero_host",
"namespace": "experiment"
}
},
"dataio_0": {
"with_label": false,
"output_format": "dense"
},
"evaluation_0": {
"need_run": false
}
}
}
}
}
}
EOF
发起训练任务
flow job submit -d fateflow/examples/lr/test_hetero_lr_job_dsl.json -c fateflow/examples/lr/test_hetero_lr_job_conf.json
返回结果
{
"data": {
"board_url": "http://fateboard:8080/index.html#/dashboard?job_id=202208310748436341990&role=guest&party_id=10001",
"code": 0,
"dsl_path": "/data/projects/fate/fateflow/jobs/202208310748436341990/job_dsl.json",
"job_id": "202208310748436341990",
"logs_directory": "/data/projects/fate/fateflow/logs/202208310748436341990",
"message": "success",
"model_info": {
"model_id": "arbiter-9006#guest-10001#host-9006#model",
"model_version": "202208310748436341990"
},
"pipeline_dsl_path": "/data/projects/fate/fateflow/jobs/202208310748436341990/pipeline_dsl.json",
"runtime_conf_on_party_path": "/data/projects/fate/fateflow/jobs/202208310748436341990/guest/10001/job_runtime_on_party_conf.json",
"runtime_conf_path": "/data/projects/fate/fateflow/jobs/202208310748436341990/job_runtime_conf.json",
"train_runtime_conf_path": "/data/projects/fate/fateflow/jobs/202208310748436341990/train_runtime_conf.json"
},
"jobId": "202208310748436341990",
"retcode": 0,
"retmsg": "success"
}
|