Primary competition visual

Predictive Insights Youth Income Prediction Challenge

Helping South Africa
R10 000 ZAR
Challenge completed ~2 years ago
Prediction
Job Opportunity
637 joined
257 active
Starti
Jun 08, 23
Closei
Oct 01, 23
Reveali
Oct 01, 23
User avatar
ff
University of Yaoundé I
Use "predict_proba()" instead of "predict"
Help · 4 Jul 2023, 17:55 · 9

predict_proba(X_test)[:, 1] is more adequat!

Discussion 9 answers

Very helpful , especially for those who've made lots of submissions and are still unable to climb into 0.8

4 Jul 2023, 21:41
Upvotes 1
User avatar
ff
University of Yaoundé I

I thought the same thing since many people use the staternotebook as their base.

I would have wanted to actually participate in this challenge because it is exciting! But I am in another one that's more to my personal liking, predicting the South African CPI. ButI agree with ff.

5 Jul 2023, 05:43
Upvotes 0
User avatar
cephars
Free Lance

You can also participate,Iam also in RMB challenge

Will try. I just happen to have multiple use cases though, many of which to do with my employer, especially time series clustering and time series demand forecasting.

5 Jul 2023, 05:52
Upvotes 0
User avatar
Satti_Tareq
I tried to apply your advice but it kept throwing errors, I googled the problem many times but the given solutions do not work.
ValueError: Unknown label type: 'continuous'

this is the message. Itried to label encode target as all solution does but it failed, I am boosting two lightgbm models.any help would be appreciated.
6 Jul 2023, 06:06
Upvotes 1
User avatar
ff
University of Yaoundé I

val_preds = model.predict_proba(X_val)[:, 1]
fpr, tpr, _ = roc_curve(y_val, val_preds)
score = auc(fpr, tpr)

I strongly advise you to study the "auc" metric so that you can better improve your score in the competition.

User avatar
Satti_Tareq

Thank you very much!

In R,

predictions <- predict(model, df_test_dummy, type = "prob")

# Then keep the second column

predictions <- predictions[2]

6 Jul 2023, 19:28
Upvotes 0