Can´t run Hard Voting Classifier (ML for Options Trading course)

Hi, I´m in section 13, unit 11 of the Machine Learning for Options Trading course and when I try to run cell 5 (Hard Voting Classifier Model) in my own jupyter notebook with the quantra_py env activated, it hangs (asterisk) indefinitely. The notebook in the course page works normally, it´s when I run it in my local notebook that it hangs. Has anybody encountered this problem before?





 

Hello Drac,



I downloaded the zip file and ran the notebook "Voting Classifier Model" on my local system (in the quantra_py environment) and it ran successfully. 



There might be instances where the system is not able to run due to other tasks running on your system. Can you mention a few details so I can try to assist you with the issue?


  1. The operating system version
  2. System RAM, Processor
  3. Graphics Processor (if installed)





     
  1. macOS Sonoma 14.0
  2. 32 GB 2667 MHz DDR4
  3. AMD Radeon Pro 5500M 8 GB





     

I just uninstalled and reinstalled Anaconda and created quantra_py. When I run the downloaded notebooks they open with no problem. But if you calculate cell by cell, in cell 5 (starts with # Implement voting classifier with hard voting), it hangs and shows [*]: the same that happens when I type in the code. The same happens with the notebook Blending of Machine Learning in cell 5 (starts with # Create data frame for storing train data of blending or meta learner) also hangs when you calculate cell by cell from the top.



Could you please take a look? Thank you for your help.

Hi Drac,



We ran the notebooks on Mac systems (both Intel and M1 chips), and it is running fine on our end. We are able to run both the notebooks, Blending and Voting classifier without any errors and are not able to replicate the issue. We suggest you do a clean reinstall of Anaconda and try rerunning the notebooks after creating the quantra_py environment. If the issue persists, as an alternative, you can also run the notebooks on Google Colab. 



Hope this helps!



 

I´ll do that, thank you!