Course Name: Unsupervised Learning in Trading, Section No: 9, Unit No: 12, Unit type: Exercise
I believe the solution code at line 12 is wrong.
fut_returns['direction'] = np.where(fut_returns['hit_ratio_negative_trades'] >= 0.55, 1, fut_returns['direction']) # should be "hit_ratio_positive_trades"