FederatedAI / FATE

An Industrial Grade Federated Learning Framework
Apache License 2.0
5.72k stars 1.55k forks source link

使用dag发起homo_nn 和 hetero_nn的训练流程 #5696

Open lynne0012006 opened 3 months ago

lynne0012006 commented 3 months ago

问题描述1:可以使用dag发起homo_nn 和 hetero_nn的训练流程吗?如果能发起,可不可以传一些dag案例作为参考? 问题描述2:下面dag发起test_nn_binary流程,运行到homo_nn_0组件时就报错“list indices must be integers or slices, not str”,应该怎么修改dag文件呢?

附1:报错内容: File "/data/projects/fate/fate/python/fate/components/components/nn/loader.py", line 165, in from_dict 166 module_name=data_dict["module_name"], 167 TypeError: list indices must be integers or slices, not str

附2:dag内容 dag: stage: train party_tasks: host_9999: parties:

talkingwallace commented 3 months ago

不建议使用dag来定义流程了,可以参考下pipeline的例子