Incorrect output error

When creating a post, please add:

  • Week # must be added in the tags option of the post.
  • Link to the classroom item you are referring to: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  • Description (include relevant info but please do not post solution code or your entire notebook): I am unable to submit my lab as I keep getting assertion error, I tried multiple times and rechecked the code but still kept getting this error.
  • Error: “if the target is fully correlated with other feature, that feature must be the best split. Expected 0, got 1”.

Could you please help me in resolving the same.

Thanks,

Anjum

Hi @Anjum_90,

Have you figured out your issue. The error is telling you that your code is not properly handling the case where the target is fully correlated. Did you pass all the unit tests? The grader runs different tests, so it’s possible for the unit tests to pass but for the grader to still find an issue. But the first step is to make sure your unit tests are passing. Make sure you read instructions carefully, and you can also use the hints if you get stuck.

Here’s another post with more details about this error: C2 W4: AssertionError: If the target is fully correlated with other feature, that feature must be the best split. Expected 1, got 0