Primary competition visual

Traffic Jam: Predicting People's Movement into Nairobi

Helping Kenya
$12 000 USD
Completed (~7 years ago)
Prediction
1495 joined
203 active
Starti
Sep 06, 18
Closei
Jan 13, 19
Reveali
Jan 14, 19
Problem with making Submissions.
Data · 14 Oct 2018, 09:43 · edited less than a minute later · 5

Hi all. I've been trying to make submissions but am always getting an error that some entries are missing from the predicted set. What could be the problem?

Discussion 5 answers

@kibuikaCodes

Maybe a csv file misses something? Maybe headers, or not enough rows. You can have a look at my repo https://github.com/pawelmorawiecki/traffic_jam_Nairobi and try to run the code. It generates the csv file with predictions and then compare the file with yours.

14 Oct 2018, 11:07
Upvotes 0

I got it right finally. Thank you

Whenever I get that error, it turns out my csv file has 3 columns. This happens because I am using pandas to output results, and the .to_csv() method returns a .csv file with the index as one of the columns. If this is your problem, you can adjust this within your code or manually fix the .csv file.

14 Oct 2018, 17:13
Upvotes 0

Hi. First of all try to print the head() or columns() before saving it into a file to confirm the output of the predictions which should be ride_id and number_of_ticket.

15 Oct 2018, 08:46
Upvotes 0

Thank you all. Turns out i hadn't done proper preprocessing. But now my csv is okay.

16 Oct 2018, 12:51
Upvotes 0