Primary competition visual

Amini Soil Prediction Challenge

Helping Africa
$7 000 USD
Completed (over 1 year ago)
Prediction
Earth Observation
1076 joined
336 active
Starti
02 Apr 25
Closei
22 Jun 25
Reveali
23 Jun 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

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.

Upvotes 0
User avatar

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')

Upvotes 0
User avatar

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

Upvotes 1