AutoML3 :: AutoML for Lifelong Machine Learning Forum

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

> My code submission gave an error. How to debug it ?

I made a dummy submission by submitting the model.py file given in the Starting Kit.

It gave me the following error

Traceback (most recent call last):
File "/tmp/codalab/tmp0vs0Ty/run/program/score.py", line 132, in
predict_file = ls(os.path.join(prediction_dir, basename + '*.predict'))[-1]
IndexError: list index out of range

Any idea on how to reproduce this on my computer? (What code to run, what command, ...)

Posted by: leogautheron @ Aug. 8, 2018, 5:28 p.m.

Dear participant,

Thank you for joining the challenge. It seems the predictions file has not the right length. Did you run the code without any modification?

Please note that we are experiencing some technical difficulties at this stage (which are to be solved in a matter of days), however, this error does not seem to be caused by that. Please try again in a few hours. Thanks again!

Best

Organizing team

Posted by: hugo.jair @ Aug. 8, 2018, 7:26 p.m.

I ran the code with minor modifications.

My archive contained only the model.py file. Do we also need to supply the "metadata" file and the "model.pyc" file ?

Posted by: leogautheron @ Aug. 9, 2018, 4:49 a.m.

To be sure, I submitted the Public submission zip file hugo.jair-1-input.zip

But it gave me a different error:

Traceback (most recent call last):
File "/worker/worker.py", line 298, in run
bundles = get_bundle(root_dir, 'run', bundle_url)
File "/worker/worker.py", line 158, in get_bundle
metadata[k] = get_bundle(bundle_path, k, v)
File "/worker/worker.py", line 108, in get_bundle
urllib.urlretrieve(url, bundle_file.name)
File "/usr/local/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/local/lib/python2.7/urllib.py", line 273, in retrieve
block = fp.read(bs)
File "/usr/local/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/usr/local/lib/python2.7/ssl.py", line 772, in recv
return self.read(buflen)
File "/usr/local/lib/python2.7/ssl.py", line 659, in read
v = self._sslobj.read(len)
File "/usr/local/lib/python2.7/site-packages/billiard/pool.py", line 235, in soft_timeout_sighandler
raise SoftTimeLimitExceeded()
SoftTimeLimitExceeded: SoftTimeLimitExceeded()

Posted by: leogautheron @ Aug. 9, 2018, 4:50 a.m.


It seems the error is due to the CodaLab server, please try again!

Best

Organizers

Posted by: hugo.jair @ Aug. 9, 2018, 11:34 a.m.

What about the other error ?
I made another submission and I obtained the same error.
But when I run the code on the sample from the Starting Kit it works fine.

Posted by: leogautheron @ Aug. 9, 2018, 11:56 a.m.


About the other error: the modifications you made caused it to fail, I cannot tell you how to fix this because I do not know what did change,

best

Posted by: hugo.jair @ Aug. 9, 2018, 12:12 p.m.

Ok.
Does it count for the 100 maximum submissions when it fails?

Posted by: leogautheron @ Aug. 9, 2018, 12:21 p.m.


It counts, sorry
Best

Organizers

Posted by: hugo.jair @ Aug. 9, 2018, 12:30 p.m.

Can we get the source code used by Codelab to help to debug then ?

Posted by: leogautheron @ Aug. 9, 2018, 12:46 p.m.


The first error is not due to CodaLab.

You can always contribute to CodaLab via this github

https://github.com/codalab/codalab-competitions/wiki/Project_About_CodaLab

Best

Posted by: hugo.jair @ Aug. 9, 2018, 4:38 p.m.

No, I meant:
Can we have the python source code (and commands) used by the Codelab workers to evaluate our submissions?
This way I can reproduce the same thing on my computer and track down the issue without wasting my submissions.

Posted by: leogautheron @ Aug. 9, 2018, 5:40 p.m.

Sure, you have everything in the Starting kit,

Best

Posted by: hugo.jair @ Aug. 9, 2018, 5:44 p.m.

Ok thanks, I thought the code was different on the workers.
I will give it a try.

Posted by: leogautheron @ Aug. 9, 2018, 5:47 p.m.
Post in this thread