Uh oh!
There was an error while loading. Please reload this page.
Conversation
mfeurer
left a comment
There was a problem hiding this comment.
Is there a reason to not remove all lines you touched?
| np.array(repetitions[repetition][fold][sample][0], dtype=np.int32), | ||
| np.array(repetitions[repetition][fold][sample][1], dtype=np.int32)) | ||
| ''' |
There was a problem hiding this comment.
PyCharm usually wants double quotes, right?
ArlindKadra
commented
May 15, 2018
@mfeurer since you mentioned removing or fixing split pickling, I only commented out the code as a simple solution. I can remove it completely if you are ok with it. @janvanrijn we are using double quotes for docstrings. |
mfeurer
commented
May 16, 2018
I think removing it is fine. Reading those files isn't as costly as reading in the data. |
mfeurer
left a comment
There was a problem hiding this comment.
Could you please remove the if cache statements and the cache=True. I think they're not necessary and complicate the code quite a bit.
ArlindKadra
commented
May 16, 2018
@mfeurer sure, but we will not have a way to disable loading from cache. |
mfeurer
commented
May 16, 2018
I don't think we have this for anything else. As a split should never change I don't see a reason to keep this functionality. |
ArlindKadra
commented
May 17, 2018
@mfeurer while working in the java repo, there was a case when the server was having problems and it was returning a bad value for a certain request. The value was cached and it would fail a procedure we were running as it would run on the cached object. In this case the flag was necessary (apart from the fact that the files could be removed locally). However given that we validate the object, this should not happen. |
mfeurer
commented
May 17, 2018
Yes, we have this piece of code for downloading the task: One last thing, could you please remove the try/except around the pickle file loading. We don't react on any exception, so the try/except is actually useless. |
Issue #431