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.
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.
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')
deleted
Ensure that your submission file matches the format and structure of the sample submission file.
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.
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')
deleted
Ensure that your submission file matches the format and structure of the sample submission file.