Cart / 0.00$

No products in the cart.

Why is my Kaggle sc...
 
Notifications
Clear all

[Solved] Why is my Kaggle score showing zero?

1 Posts
2 Users
2 Reactions
209 Views
0
Topic starter

Hi, I want to know why my score is showing zero. There is no error and I have predicted everything after testing it on the validation set. It's not possible to be at 0. I checked, and most of the submissions are at 0 for no reason. I tried submitting files and notebooks separately.

Topic Tags
1 Answer
2

Your score might be showing zero on Kaggle competition because your output data type is not the same as what they asked for in the submission.csv file. Please make sure to recast your data in the right format and submit it once again. 

Tensorflow output is in float and most of the time they want the answer in int in classification competition. 

submission = test_df[['id']].reset_index(drop=True)

# see here you have to cast the output to int64 this way
submission['target'] = tf.cast(pred, tf.int64)

# then submit it to the csv like this. 
submission.to_csv('submission.csv', index=False)

Please close the topic if your issue has been resolved. Add comments to continue adding more context or to continue discussion and add answer only if it is the answer of the question.
___
Neuraldemy Support Team | Enroll In Our ML Tutorials

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.

Retrieve your password

Please enter your username or email address to reset your password.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?