XGBoost on local

Course Name: Advanced Momentum Trading: Machine Learning Strategies, Section No: 12, Unit No: 12, Unit type: Notebook

 

On trying to run similar code on my computer, i get an error on XGBOOST
 

ValueError: Invalid classes inferred from unique values of `y`.  Expected: [0 1], got [-1  1]

Hi Allan,



The error might be due to a different XGBoost version on your local system. You can try installing XGBoost version 1.4.1 using the following command and then re-running the notebook. 

!pip install xgboost==1.4.1

Please let us know if you still face any issues.