C3_W1_Assignment UNQW5

I appear to have input everything correctly and am still getting the incorrect output. It does appear I have two TRTMT columns which was similar to a previous posting on the topic.

Hi, kindly share a screenshot of the output you are getting so we can troubleshoot this. Did you pass the previous test cases before the 5th exercise?

2 Likes

Good morning! Yes, all previous test cases were passed. Please see screenshots below, thanks!

image removed by mentor as the image contains codes that assess your assignment grade. Posting assignment codes is direct violation of code of conduct, for better understanding of community guidelines and how to use this forum, refer faq section. if a mentor wants to look at your codes, they will ask you to send them by personal DM

hi @rch3k5

when you are instructed to set the patient who didn’t receive treatment, you are suppose to use .loc to the dataframe variable, so that it selects label classified variable related to the patients who didn’t receive treatment.

next when predicting the probability of death by including the input features into model, you are using incorrect indexing as no death is numbered as 0 and death is number as 1(refer the screenshot :backhand_index_pointing_down:t2:), but there is another slight mistake in that code.

I am attaching the hint screenshot, read the 3rd point again, you are asked to use a patient column with its respective death outcome. for example if patient colum mention as : and death as 1, then it should [:, 1] and not just [0]

Let me know if issue still persist.

regards
DP

1 Like