fate数据上传,以及上传数据的更新

3 篇文章 0 订阅
1 篇文章 0 订阅

目录

一.数据上传:

二.启动fate


一.数据上传

数据来源:

GitHub链接:GitHub - FederatedAI/FATE: An Industrial Grade Federated Learning Framework

国内链接:FATE: FATE(Federated AI Technology Enabler)是基于联邦机器学习技术的一个框架,其旨在提供安全的计算框架来支持联邦 AI 生态 - Gitee.com

在fate官方文件里面有类似scorecard_testsuite.json这样的文件,里面攥写了需要上传的数据:

{
    "data": [
        {
            "file": "/fate/logs/scorecord/default_credit_hetero_host.csv",
            "head": 1,
            "partition": 16,
            "table_name": "default_credit_hetero_host",
            "namespace": "experiment",
            "role": "host_0"
        },
        {
            "file": "/fate/logs/scorecord/default_credit_hetero_guest.csv",
            "head": 1,
            "partition": 16,
            "table_name": "default_credit_hetero_guest",
            "namespace": "experiment",
            "role": "guest_0"
        }
    ],
    "tasks": {
        "scorecard": {
            "conf": "test_scorecard_job_conf.json",
            "dsl": "test_scorecard_job_dsl.json"
        }
    }
}

然后需要创建2个数据上传文件不妨,命名为upload_conf.jsonupload_guest.json

{
      "file": "/fate/logs/scorecard/default_credit_hetero_host.csv",
      "table_name": "default_credit_hetero_host",
      "namespace": "experiment",
      "head": 1,
      "partition": 16,
      "work_mode": 0,
      "backend": 0,
      "role": "host_0"
}
{
      "file": "/fate/logs/scorecard/default_credit_hetero_guest.csv",
      "table_name": "default_credit_hetero_guest",
      "namespace": "experiment",
      "head": 1,
      "partition": 16,
      "work_mode": 0,
      "backend": 0,
      "role": "guest_0"
}

这里的路径一定要是绝对路径。

二.启动fate

docker start fate_python
docker start fate_fateboard

显示结果为:这里主要看后面两个容器是否存在,redis和mysql对于数据上传无影响。

如果启动失败: 可能是名字错了使用代码查看,启动对应的容器

docker ps -a

进入容器fate_python:

docker exec -t -i fate_python bash

root@837d347dc6e0:/fate#

python ${your_install_path}/fate_flow/fate_flow_client.py -f upload -c dsl_test/upload_data.json

路径一定要写对,这里的路径和原本的路径不太一样,你可以打开docker_standalone.yml文件查看你fate所对应的真实路径。fate_flow_client.py应该在fate/data里面。使用同样的方法上传第二个数据包。

 我这里多增加了-drop 1代码行因为之前已经上传过数据了:

 当然fate1.5.0以后可以使用代码:

flow data upload -c ${dsl}/upload_data.json

 但是这个代码报错会很隐晦,不容易改正错误,比如有时报错文件内容缺少啥,但是可能是文件路径(一定要用docker的绝对路径)错误。

打开board_url网址:

 这样完成两部分的数据上传,接下来进行模型训练。

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
ogging to D:\Program Files (x86)\Fate/hollow ataraxia\FateFD.exe.console.log started on Friday, October 07, 2011 12:48:08 12:48:07 ! (info) Loading options from embedded area... 12:48:07 ! 吉里吉里[きりきり] 2 実行コア/2.25.11.909 (SVN revision:1109; Compiled on Sep 12 2005 22:44:16) TJS2/2.4.19 Copyright (C) 1997-2005 W.Dee and contributors All rights reserved. 12:48:07 ! バージョン情報の詳細は Ctrl + F12 で閲覧できます 12:48:07 ! Program started on Windows NT 6.1.3505 Service Pack 1 (Win32) 12:48:07 ! (info) Total physical memory : -1 12:48:07 ! (info) Selected project directory : file://./d/program files (x86)/fate/hollow ataraxia/data.xp3> 12:48:07 ! (info) CPU #0 : FPU:yes MMX:yes 3DN:no SSE:yes CMOVcc:yes E3DN:no EMMX:yes SSE2:yes TSC:yes Intel(GenuineIntel) [Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz] CPUID(1)/EAX=00020652 CPUID(1)/EBX=00100800 12:48:07 ! (info) CPU #1 : FPU:yes MMX:yes 3DN:no SSE:yes CMOVcc:yes E3DN:no EMMX:yes SSE2:yes TSC:yes Intel(GenuineIntel) [Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz] CPUID(1)/EAX=00020652 CPUID(1)/EBX=01100800 12:48:07 ! (info) CPU #2 : FPU:yes MMX:yes 3DN:no SSE:yes CMOVcc:yes E3DN:no EMMX:yes SSE2:yes TSC:yes Intel(GenuineIntel) [Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz] CPUID(1)/EAX=00020652 CPUID(1)/EBX=04100800 12:48:07 ! (info) CPU #3 : FPU:yes MMX:yes 3DN:no SSE:yes CMOVcc:yes E3DN:no EMMX:yes SSE2:yes TSC:yes Intel(GenuineIntel) [Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz] CPUID(1)/EAX=00020652 CPUID(1)/EBX=05100800 12:48:07 ! (info) finally detected CPU features : FPU:yes MMX:yes 3DN:no SSE:yes CMOVcc:yes E3DN:no EMMX:yes SSE2:yes TSC:yes 12:48:07 ! (info) Specified option(s) : -debugwin=no 12:48:07 ! (info) Loading cxdec.tpm 12:48:08 ! OS : Windows NT 6.1.3505 Service Pack 1 (Win32) 12:48:08 ! KAG : 3.25 beta 10 TYPE-MOON customized 12:48:08 ! Kirikiri : 2.25.11.909

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值