Unq_05 base risks

Hi, I am stuck on exercise 5.
I am using the method X.loc[:,‘TRTMT’]=0 to set the values of the TRTMT column and passing X to the predict_proba(X) function to get the probabilities.
However I keep getting this error:


What i’m doing wrong?

Hello @Sebastian_Miranda

Could share exercise 5 codes by personal DM. Click on my name and then message.

Regards
DP

Already resolved, thank you very much

1 Like

Kindly let learners know how you resolve your issue.

I was taking all the predictions instead of taking only the death probability.