下载standalone-fate-master-1.2.0: curl -O https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/standalone-fate-master-1.2.0.tar.gz tar -zxvf standalone-fate-master-1.2.0.tar.gz
启动fate-flow-server: 在PyCharm使用python3启动standalone-fate-master-1.2.0/fate_flow/fate_flow_server.py,输出信息如下:
* Running on http://0.0.0.0:9380/ (Press CTRL+C to quit)
表明fate_flow_server启动成功
PS:运行后会有DeprecationWarning 提示:/Users/zengzhihao/standalone-fate-master-1.2.0/fate_flow/fate_flow_server.py:68: DeprecationWarning: 'werkzeug.wsgi.DispatcherMiddleware' has moved to 'werkzeug.middleware.dispatcher.DispatcherMiddleware'. This import is deprecated as of version 0.15 and will be removed in version 1.0. app = DispatcherMiddleware( 在fate_flow_server.py文件68行修改替换即可:
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.middleware.dispatcher import DispatcherMiddleware
测试quick_run.py: 在PyCharm使用python3启动standalone-fate-master-1.2.0/examples/federatedml-1.x-examples/ quick_run.py,将输出如下信息:
/Users/xxx/venv/bin/python /Users/xxx/Documents/workspace/python/FATE/examples/federatedml-1.x-examples/quick_run.py
Upload data config json: {'file': 'examples/data/default_credit_homo_guest.csv', 'head': 1, 'partition': 10, 'work_mode': 0, 'table_name': 'default_credit_homo_guest', 'namespace': 'default_credit_homo_guest_guest'}
stdout:{
"data": {
"board_url": "http://192.168.31.58:8080/index.html#/dashboard?job_id=202001181915023702281&role=local&party_id=0",
"job_dsl_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915023702281/job_dsl.json",
"job_runtime_conf_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915023702281/job_runtime_conf.json",
"logs_directory": "/Users/xxx/Documents/workspace/python/FATE/logs/202001181915023702281",
"namespace": "default_credit_homo_guest_guest",
"table_name": "default_credit_homo_guest"
},
"jobId": "202001181915023702281",
"retcode": 0,
"retmsg": "success"
}
Upload data config json: {'file': 'examples/data/default_credit_homo_host.csv', 'head': 1, 'partition': 10, 'work_mode': 0, 'table_name': 'default_credit_homo_host', 'namespace': 'default_credit_homo_host_host'}
stdout:{
"data": {
"board_url": "http://192.168.31.58:8080/index.html#/dashboard?job_id=202001181915058443762&role=local&party_id=0",
"job_dsl_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915058443762/job_dsl.json",
"job_runtime_conf_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915058443762/job_runtime_conf.json",
"logs_directory": "/Users/xxx/Documents/workspace/python/FATE/logs/202001181915058443762",
"namespace": "default_credit_homo_host_host",
"table_name": "default_credit_homo_host"
},
"jobId": "202001181915058443762",
"retcode": 0,
"retmsg": "success"
}
dsl_path: /Users/xxx/Documents/workspace/python/FATE/examples/federatedml-1.x-examples/user_config/train_dsl.config_1579346108_9453, conf_path: /Users/xxx/Documents/workspace/python/FATE/examples/federatedml-1.x-examples/user_config/train_conf.config_1579346108_7399
stdout:{
"data": {
"board_url": "http://192.168.31.58:8080/index.html#/dashboard?job_id=202001181915093328073&role=guest&party_id=10000",
"job_dsl_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915093328073/job_dsl.json",
"job_runtime_conf_path": "/Users/xxx/Documents/workspace/python/FATE/jobs/202001181915093328073/job_runtime_conf.json",
"logs_directory": "/Users/xxx/Documents/workspace/python/FATE/logs/202001181915093328073",
"model_info": {
"model_id": "arbiter-10000#guest-10000#host-10000#model",
"model_version": "202001181915093328073"
}
},
"jobId": "202001181915093328073",
"retcode": 0,
"retmsg": "success"
}
Please check your task in fate-board, url is : http://192.168.31.58:8080/index.html
The log info is located in /Users/xxx/Documents/workspace/python/FATE/examples/federatedml-1.x-examples/../../logs/202001181915093328073
Task is running, wait time: 10.55770993232727
Task is running, wait time: 21.68661403656006
Task is running, wait time: 32.47444009780884
Task is running, wait time: 43.21940803527832
Task is running, wait time: 53.8386709690094
表明联邦学习的实例跑起来了。
|