Hi guys, mentors,
I am in the Exercise 2 - sample from “dinosaurs island”
If I use the code, idx = np.random.choice(range(len(y)), p = y), my local machine gives me an error, and says not 1D. However,my y is already 1d as (27,1). So why this is not working?
I saw the hint says, I need to do y.ravel(), so, my original y as (27,1) is not true ID after all?
