Primary competition visual

Amini Soil Prediction Challenge

Helping Africa
$7 000 USD
Completed (9 months ago)
Prediction
Earth Observation
1061 joined
339 active
Starti
Apr 02, 25
Closei
Jun 22, 25
Reveali
Jun 23, 25
ERROR When Submiting
6 Jun 2025, 06:44 · 4

I get this error when submitting

Missing entries for IDs ID_ZgrspC_N, ID_ZgrspC_P, ID_ZgrspC_K, ID_ZgrspC_Ca, and ID_ZgrspC_Mg

I would kindly appreciate any help.

Discussion 4 answers
User avatar
Freelance

Hi

While saving your predictions in a csv, just set index to False

predictions_df.to_csv('name.csv', index=False)

I guess this would work, else you may have to double-check where the problem is coming from.

6 Jun 2025, 06:47
Upvotes 0

N_pred = test_predictions[:, 0] # Predictions for N if your predictions are a numpy array

# Split the predictions into separate columns - if preds is pandas df

N_pred = test_predictions['N'] # Predictions for N

P_pred = test_predictions['P'] # Predictions for P

K_pred = test_predictions['K'] # Predictions for K

test_gap_df = pd.merge(test_gap_df, test_df[['PID', 'BulkDensity']], on='PID', how='left')

6 Jun 2025, 07:14
Upvotes 0
User avatar
Freelance

deleted

Ensure that your submission file matches the format and structure of the sample submission file.

6 Jun 2025, 11:15
Upvotes 1