i have created the model with accuracy 94. how can i test the result and make sample submission file for that.
Read the submission file
Set the loan ID and predictions
Remember we need predictions in Y and N. So convert 1 and 0 to Y and N.
Convert the submission to .csv format and make submission to check the accuracy on the leaderboard.
Hi, i get an error when creating submission csv,on the below line of code
submission[‘Loan_ID’]=test_original[‘Loan_ID’], i get “test_original” not defined
Hi @solly7, have you defined a dataframe ‘test_original’? please try and print the shape of the dataframe.
Hi, since im still new…what do i define test_original dataframe into?? please help
@solly7, test_original is nothing but the test dataset provided. You need to load the dataset using the following command -
test_original = pd.read_csv('name_of_test_file')
Thanks a lot…let me try it out
i have managed to replaced ‘test_original’ with my defined name for test dataset, but now im having a problem with below code
submission[‘Loan_ID’]=df_validation[‘Loan_ID’], i get an error KeyError: ‘Loan_ID’, i think is because i have droped loan id at the top. any idea of how to solve this?
@solly7, You can save the loan ID in the submission file before dropping the column.
Thanks a lot…it worked…i have succesfully submitted