Hello please see the attached image, which shows that I’m getting the correct answer, but the Practice Lab is giving me an error saying that I got the wrong answer. Please fix and advise how to proceed forward.

My Answer:

CASE 1:

Left indices: [0, 1, 2, 3, 4, 7, 9]

Right indices: [5, 6, 8]

CASE 2:

Left indices: [0, 2, 4]

Right indices: [6, 8]

Expected Output:

CASE 1: Left indices: [0, 1, 2, 3, 4, 7, 9]

Right indices: [5, 6, 8]

CASE 2: Left indices: [0, 2, 4]

Right indices: [6, 8]

Course: Advanced Learning Algorithms

Programming Assignment: Practice Lab: Decision Trees

Lab ID: ktwlwnqntmyx