Primary competition visual

DSN AI Bootcamp Qualification Hackathon by Data Science Nigeria

Helping Nigeria
Knowledge
Challenge completed ~5 years ago
Prediction
1094 joined
749 active
Starti
Sep 09, 20
Closei
Oct 03, 20
Reveali
Oct 03, 20
Predict_proba
Data · 14 Sep 2020, 16:56 · 2

I tried to save the predicted values using predict_proba but instead the probability is saved as opposed to the format in the sample submission

Discussion 2 answers

please could u be more simpler in your explanation?

It is okay, you can submit either probabilities or actual predictions.

Now, when you use the predict_proba method, you get an array of a shape (nx2) where n is the number of rows (data points) and 2 is the number of columns (first column for the probability of classification as -1 and second for +1). Just use the second column and submit the probabilities, your score would definitely increase than submitting the actual predictions.

FYI, you can use model.predict_proba[: , 1] to get exactly the probability classifications for +1 and submit them.

15 Sep 2020, 09:24
Upvotes 0