MAFAT Challenge - WiFi Sensing: Non Invasive Human Presence Detection - Track 1 Forum

Go back to competition Back to thread list Post in this thread

> ValueError: Must produce aggregated value

Hi,

Dם anyone know what is this error?

The model run locally properly but from the submission environment i got this Error:
ValueError: Must produce aggregated value

File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/generic.py", line 869, in aggregate
result = op.agg()
File "/usr/local/lib/python3.8/dist-packages/pandas/core/apply.py", line 168, in agg
return self.agg_dict_like()
File "/usr/local/lib/python3.8/dist-packages/pandas/core/apply.py", line 475, in agg_dict_like
results = {
File "/usr/local/lib/python3.8/dist-packages/pandas/core/apply.py", line 476, in <dictcomp>
key: obj._gotitem(key, ndim=1).agg(how) for key, how in arg.items()
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/generic.py", line 271, in aggregate
ret = self._aggregate_multiple_funcs(func)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/generic.py", line 326, in _aggregate_multiple_funcs
results[key] = self.aggregate(func)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/generic.py", line 284, in aggregate
return self._python_agg_general(func, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/groupby.py", line 1481, in _python_agg_general
result = self.grouper.agg_series(obj, f)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/ops.py", line 981, in agg_series
result = self._aggregate_series_pure_python(obj, func)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/ops.py", line 1010, in _aggregate_series_pure_python
libreduction.check_result_array(res, group.dtype)
File "pandas/_libs/reduction.pyx", line 13, in pandas._libs.reduction.check_result_array
File "pandas/_libs/reduction.pyx", line 21, in pandas._libs.reduction.check_result_array
ValueError: Must produce aggregated value

Thanks

Posted by: grolnik @ May 29, 2022, 8:17 p.m.

Hi,
We saw that you succeeded in submitting your last model, is the error still relevant?
If so, please write us the number and the date of the submission where you received the error message, and we will take a look.
MAFAT Challenge Team

Posted by: MAFAT_Challenge @ May 30, 2022, 8:43 a.m.

Hi,

The error didn't solved, I changed my code a little bit to prevent this issue.

But I have new error that occur only in your impermanent and didn't reproduce in my computer.

I will appreciate your help.

It's occur on the model I sent at 05/31/2022 21:43:03 model_track_16.zip

Traceback (most recent call last):
File "/tmp/codalab/tmpj6Js3U/run/ingestion_program/ingestion.py", line 82, in <module>
raise e
File "/tmp/codalab/tmpj6Js3U/run/ingestion_program/ingestion.py", line 65, in <module>
Y_test.append(M.predict(X_test_window))
File "/tmp/codalab/tmpj6Js3U/run/program/model.py", line 192, in predict
X = self.preprocess(X)
File "/tmp/codalab/tmpj6Js3U/run/program/model.py", line 310, in preprocess
new_feature_df_r = new_feature_df_r.unstack()
File "/usr/local/lib/python3.8/dist-packages/pandas/core/series.py", line 4157, in unstack
return unstack(self, level, fill_value)
File "/usr/local/lib/python3.8/dist-packages/pandas/core/reshape/reshape.py", line 485, in unstack

Thanks

Posted by: grolnik @ May 31, 2022, 9:54 p.m.

Hi,
We saw that you succeeded in submitting your model: model_track_16.zip. Is the error still relevant?
MAFAT Challenge Team

Posted by: MAFAT_Challenge @ June 2, 2022, 7:33 a.m.
Post in this thread