-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Traceback (most recent call last):
File "/home/yuca/DT4H_corregido/generados/flcore/server_cmd.py", line 154, in
history = fl.server.start_server(
File "/home/yuca/anaconda3/envs/dt4h/lib/python3.10/site-packages/flwr/server/app.py", line 255, in start_server
hist = run_fl(
File "/home/yuca/anaconda3/envs/dt4h/lib/python3.10/site-packages/flwr/server/server.py", line 492, in run_fl
hist, elapsed_time = server.fit(
File "/home/yuca/anaconda3/envs/dt4h/lib/python3.10/site-packages/flwr/server/server.py", line 115, in fit
res_fit = self.fit_round(
File "/home/yuca/anaconda3/envs/dt4h/lib/python3.10/site-packages/flwr/server/server.py", line 251, in fit_round
] = self.strategy.aggregate_fit(server_round, results, failures)
File "/home/yuca/DT4H_corregido/generados/flcore/flcore/models/weighted_random_forest/FedCustomAggregator.py", line 139, in aggregate_fit
parameters_aggregated = serialize_RF(aggregation_result)
File "/home/yuca/DT4H_corregido/generados/flcore/flcore/serialization_funs.py", line 36, in serialize_RF
parameters_to_ndarrays_final = ndarrays_to_parameters_RF(params)
File "/home/yuca/DT4H_corregido/generados/flcore/flcore/serialization_funs.py", line 32, in ndarrays_to_parameters_RF
tensors = [ndarray_to_bytes_RF(ndarray) for ndarray in ndarrays]
File "/home/yuca/DT4H_corregido/generados/flcore/flcore/serialization_funs.py", line 32, in
tensors = [ndarray_to_bytes_RF(ndarray) for ndarray in ndarrays]
File "/home/yuca/DT4H_corregido/generados/flcore/flcore/serialization_funs.py", line 27, in ndarray_to_bytes_RF
np.save(bytes_io, ndarray, allow_pickle=True) # type: ignore
File "/home/yuca/.local/lib/python3.10/site-packages/numpy/lib/_npyio_impl.py", line 580, in save
arr = np.asanyarray(arr)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.