Submissions for round 285 failing

I’m trying to submit my predictions for round 285 (data version 2) with the same code as last week, but get this error: “ValueError: Invalid submission values. Values must be between 0 and 1 exclusive.”. My value are positively between 0 and 1 (actuall even between 0.25 and 0.8). I get the same error using csv, df, or manual upload.

Does anyone else have the same issue?

PS. Submissions seem to work for data version 1.

I vaguely remember getting this error because the predictions had too many decimals, so you could look into that.

Thank you, that did not work. It’s weird because I don’t think I changed anything. Am I the only one with this problem?

Found the issue - apparently, my cache had a bug not overwriting the tournament file with the latest version. It seems that the length of the tournament file has changed from round 284 (by 1). This presumably caused the somewhat cryptic error message.

1 Like

I had same problem because a couple of my predictions was equal to 1.0000000000002, even if I performed a minmax transform at the end of pipeline, double check it

I would suggest using two calls to argsort (I think that’s the Python function) rather than normal rescaling to create the submissions, as from what I understand that’s what’s done anyway. E.g.

suppose R is your calculated result. Then calculate

R1=np.argsort(R)
R2=(np.argsort(R1)+0.5)/length(R1)

and submit based on R2 rather than a rescaled version of R. (my syntax is probably screwy since I don’t speak Python, but if you catch my drift…) I’m assuming the array is zero-based indexing, not 1 based.

This gives you uniformly spaced values in (0,1), and you don’t need to keep more than four or five decimal places.