Not able to get the correct accuracy

in this challange my accuracy is not coming accurate have i missed any steps?? . and the prediction result is coming in float how to convert it in int? please also tell how could i convert it as per sample submission with id?

here is the code - https://ide.codingblocks.com/s/103596

Hey Kushal,
It’s highly likely that your accuracy is not coming well because your prediction results are float. Convert them to int by type casting them inside a loop.
Also, is the results when you are submitting the predictions coming low or the training accuracy is low too?

well i have made the changes as you said but the result is not changed… my training accuracy is around 80 but the testing accuracy is still the same

@rachitbansal2500 please clear this one bhaia

Hey Kushal,
Sorry, this one slipped from my mind.
Were you able to resolve it yet?

nope bhaia i am still stucked in this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.