Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在第五章的例子中 #5

Open
luckilyj opened this issue Nov 4, 2021 · 6 comments
Open

在第五章的例子中 #5

luckilyj opened this issue Nov 4, 2021 · 6 comments

Comments

@luckilyj
Copy link

luckilyj commented Nov 4, 2021

Traceback (most recent call last):
25
File "./fate/python/fate_flow/operation/task_executor.py", line 168, in run_task
26
run_object.run(component_parameters_on_party, task_run_args)
27
File "./fate/python/federatedml/model_base.py", line 98, in run
28
this_data_output = func(*real_param)
29
File "./fate/python/federatedml/util/data_io.py", line 886, in fit
30
data_inst = self.reader.read_data(data_inst, "fit")
31
File "./fate/python/federatedml/util/data_io.py", line 139, in read_data
32
input_data_labels = input_data.mapValues(lambda value: value.split(self.delimitor, -1)[self.label_idx])
33
File "./fate/python/fate_arch/common/profile.py", line 282, in _fn
34
rtn = func(*args, **kwargs)
35
File "./fate/python/fate_arch/computing/standalone/_table.py", line 93, in mapValues
36
return Table(self._table.mapValues(func))
37
File "./fate/python/fate_arch/_standalone.py", line 141, in mapValues
38
return self._unary(func, _do_map_values)
39
File "./fate/python/fate_arch/_standalone.py", line 233, in _unary
40
func, do_func, self._partitions, self._name, self._namespace
41
File "./fate/python/fate_arch/_standalone.py", line 407, in _submit_unary
42
results = [r.result() for r in futures]
43
File "./fate/python/fate_arch/_standalone.py", line 407, in
44
results = [r.result() for r in futures]
45
File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 425, in result
46
return self.__get_result()
47
File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
48
raise self._exception
49
IndexError: list index out of range

@innovation-cat
Copy link
Contributor

FATE相关的问题,请按照页面的提示,添加页面中的FATE助手咨询( https://github.com/FederatedAI/Practicing-Federated-Learning/tree/main/chapter05_FATE_HFL )。另外,本书不是专门介绍FATE的书籍,如果想学习FATE,建议按照最新的官方文档来学习,因为版本不同可能配置也会有不一样的地方:

https://github.com/FederatedAI/FATE/blob/master/README_zh.md

@gaolje
Copy link

gaolje commented May 19, 2022

Traceback (most recent call last): 25 File "./fate/python/fate_flow/operation/task_executor.py", line 168, in run_task 26 run_object.run(component_parameters_on_party, task_run_args) 27 File "./fate/python/federatedml/model_base.py", line 98, in run 28 this_data_output = func(*real_param) 29 File "./fate/python/federatedml/util/data_io.py", line 886, in fit 30 data_inst = self.reader.read_data(data_inst, "fit") 31 File "./fate/python/federatedml/util/data_io.py", line 139, in read_data 32 input_data_labels = input_data.mapValues(lambda value: value.split(self.delimitor, -1)[self.label_idx]) 33 File "./fate/python/fate_arch/common/profile.py", line 282, in _fn 34 rtn = func(*args, **kwargs) 35 File "./fate/python/fate_arch/computing/standalone/_table.py", line 93, in mapValues 36 return Table(self._table.mapValues(func)) 37 File "./fate/python/fate_arch/_standalone.py", line 141, in mapValues 38 return self._unary(func, _do_map_values) 39 File "./fate/python/fate_arch/_standalone.py", line 233, in _unary 40 func, do_func, self._partitions, self._name, self._namespace 41 File "./fate/python/fate_arch/_standalone.py", line 407, in _submit_unary 42 results = [r.result() for r in futures] 43 File "./fate/python/fate_arch/_standalone.py", line 407, in 44 results = [r.result() for r in futures] 45 File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 425, in result 46 return self.__get_result() 47 File "/usr/local/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result 48 raise self._exception 49 IndexError: list index out of range
请问现在解决这个问题了么,我也遇到了

@luckilyj
Copy link
Author

luckilyj commented May 19, 2022 via email

@gaolje
Copy link

gaolje commented May 19, 2022 via email

@gaolje
Copy link

gaolje commented May 20, 2022

重新上传数据集,配置数据上传文件时,重新命名table_name,namespace(注意不能与之前名字重复)。再次提交任务就🆗了,我之前多次对同一个table_name,namespace上传数据,可能是这个原因导致这个错误。

@luckilyj
Copy link
Author

luckilyj commented May 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants