Risk Models Using Tree-based Model

I AM DOING THIS ASSIGNMENT, AND I AM NOT ABLE TO COMPLETE THIS ASSIGNMENT AFTER SO MANY TRIALS. CAN I GET HELP WHERE AM GOING WRONG? Code Cell UNQ_C1: Function ‘fraction_rows_missing’ is correct.

Code Cell UNQ_C2: ‘dt_hyperparams’ is correct.

Code Cell UNQ_C3: Unexpected error (ValueError(‘Event times and predictions must have the same shape’,)) occurred during function check. We expected function `cindex` to return type <class ‘bool’>. Please check that this function is defined properly.

Code Cell UNQ_C4: Function ‘bad_subset’ is correct.

Code Cell UNQ_C5: Unexpected error (ValueError(‘Event times and predictions must have the same shape’,)) occurred during function check. We expected function `cindex` to return type <class ‘bool’>. Please check that this function is defined properly.

Code Cell UNQ_C6: Unexpected error (ValueError(‘Event times and predictions must have the same shape’,)) occurred during function check. We expected function `cindex` to return type <class ‘bool’>. Please check that this function is defined properly.

If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.

This dependency may be the cause of the errors.

hi @AREPRADEEPTHI_2025

see this post comment, and resolve your issue

you probably using incorrect function or variable name somewhere causing mismatch shape