Wrong solution code for Unsupervised Learning in Trading

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"

Hi Stelios



Thanks for pointing this out. You are right, it should have been "hit_ratio_positive_trades". This has now been rectified.