Primary competition visual

Network Traffic Scenario Prediction Challenge by ITU

$1 000 USD
Challenge completed ~2 years ago
Prediction
373 joined
115 active
Starti
Jul 28, 23
Closei
Sep 10, 23
Reveali
Sep 10, 23
User avatar
yanteixeira
Little help with submission, please
Help · 30 Jul 2023, 13:44 · 20

My submissions haven't been scored because apparently my file is too big. I already tried dropping the ID column, but the platform doesn't accept the file without it.. I also tryed

submission['Target'].astype('int8')

and

submission.to_csv('submission.csv', index=False, compression='gzip')

The first one does not change the size of the file, and the second one, for some reason, has not been scoring as well. Since a lot of people have already submitted, it seems that this is not a big problem. Can someone help me here, please?

Discussion 20 answers
User avatar
HungryLearner

What's the size of your submitted file in MB ?

30 Jul 2023, 13:50
Upvotes 0
User avatar
yanteixeira

35MB, just a little more than the SampleSubmission.

I literally just changed the original zeroes from submission['Target'] to the predictions of the model.

It has the same number of rows as well.

User avatar
HungryLearner

This is not much. What kind of error are you getting after submission ?

Normally, scoring takes time (expect 15mins wait ,,,, according to the data page)

User avatar
yanteixeira

this is the error:

User avatar
yanteixeira

It's not even loading to score. The file is immediately denied

User avatar
Amy_Bray
Zindi

Hello, we are looking in to this.

User avatar
Yisakberhanu
wachemo university

I see that, you can change dtype into np.int8.

30 Jul 2023, 21:06
Upvotes 0
User avatar
yanteixeira

Did you solve using this? I will try here.

User avatar
yanteixeira

Unfortunatly this did not work for me...

Is your ID column of type 'object'?

User avatar
Yisakberhanu
wachemo university

It works to me I faced the same problem and I fixed it by change the Target col with np.int8 but I don't know how doesn't works for you. Anyway try to submit original sample submission file then if it works then you can try predict one

Hi @Yisakberhanu,

I tried your suggestion, but it did not work. I still have the same issue as @yanteixeira.

Could you please look at my snippet below and tell me if there is a mistake?

# Defining the dataframe
submission_df = pd.DataFrame()

# Copying the IDs into the submission dataframe
submission_df['ID'] = df_test['id'].copy()

# Adding the Target column to the submission dataframe with pred_test being the prediction array
submission_df.insert(loc=1, column='Target', value=pred_test)

# Reset index
submission_df.reset_index(inplace=True, drop=True)

# Convert Target predictions to int8
submission_df['Target'] = submission_df.Target.astype(np.int8)

# Save to local disk
submission_df.to_csv('submission.csv', index=False)
User avatar
yanteixeira

Yeah, I still have the same issue... I think I've already tried every data type possible. Even the submission with all zeroes for the target is not accepted

User avatar
Lone_Wolf
University of ghana

@Yisakberhanu can you drop your submission snippet?

1 Aug 2023, 00:28
Upvotes 0
User avatar
Yisakberhanu
wachemo university

Okay I will share my notebook

User avatar
Amy_Bray
Zindi

In the mean time, try keeping your files sizes to ~35mb, so the same number of rows as the ss. This should work for now but we are looking in to it.

1 Aug 2023, 13:23
Upvotes 0
User avatar
yanteixeira

It's like I said, the platform denied the file, even with only zeroes on the target. Good to know that it's been taken care of! Thanks!

This solution from @D_S works (note the lineterminator option):

sub.to_csv('submission.csv', index=False, lineterminator='\n')
1 Aug 2023, 17:35
Upvotes 1
User avatar
Amy_Bray
Zindi

The submission file has been increased, please let me know if you are still experiencing any issues.

8 Aug 2023, 11:42
Upvotes 0
User avatar
Juliuss
Freelance

@amyflorida626, from my end problem still persists.

User avatar
Koleshjr
Multimedia university of kenya

was this issue solved? I am facing the same problem, No approach seems to work for me

8 Aug 2023, 17:46
Upvotes 0