> Submission Error: AttributeError: 'float' object has no attribute 'astype'

Hello.
I'm trying to submit my first skeletonized results from validation set, but it returns errors like below.

WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
/opt/conda/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
File "/tmp/codalab/tmp__eRB4/run/program/score.py", line 168, in
score_file.write("Score: %0.12f\n" % mean_score.astype(float))
AttributeError: 'float' object has no attribute 'astype'

I submitted the submission result in one compressed zip file for several skeletonized results saved as ".png format."
Is it a problem of mine submitting results in wrong ways or any other problems i can't figure out there?

Thanks.

Posted by: Young_Ji @ Feb. 28, 2022, 12:36 a.m.

Same problem.
Have you solved this?

Posted by: kyriemelon @ March 2, 2022, 9:02 a.m.

Haven't yet.

Posted by: Young_Ji @ March 3, 2022, 10:34 p.m.

Facing the same issue

Posted by: ropoco @ March 5, 2022, 1:42 a.m.

I solved this issue with compressing submission package without including any directory.

Posted by: Young_Ji @ March 7, 2022, 6:19 a.m.
Post in this thread