Hi Everyone,
I just released a new video in which I go over creating a neural network inside of the research environment and then use that ML model inside of an algorithm to predict Bitcoin's price direction. You can check out the video here:
To copy the code, you can click the “Clone Algorithm” button below. Note that you need to run the research notebook code first to be able to import the model into the actual algorithm and backtest it. Also keep in mind that your backtest results will look different since the model created likely will be different from the one used below.
Let me know if you have any questions or comments.
Cheers,
Louis
.ekz.
What a great way to end the week –I've been looking forward to this.
Thanks Louis!
Yarden Gur
Thanks Louis Your trading tutorials have been very helpful for me!
David E
cant wait to watch this. Still working through your other videos first!
Jon T
FYI, looks like one of the imports is failing:
perhaps there was a directory change or one of the packages needs to be updated in QC.
PK
Hey Louis and Quantconnect Team,
I wanted to express my appreciation for the valuable content you've provided, especially on Machine Learning using Neural Networks. It's been an intriguing journey for users like me.
However, I encountered a hiccup when I tried to code along from this tutorials. This very first block of code from your tutorial seems to be causing an error in the research notebook:
from keras.utils.generic_utils import serialize_keras_object
from tensorflow.keras import utils
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Flatten
import json
This leads to the following error message:
2024-05-11 18:36:35.546491: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-05-11 18:36:37.522516: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 1 ----> 1 from keras.utils.generic_utils import serialize_keras_object 2 from tensorflow.keras import utils 3 from tensorflow.keras.models import Sequential
Can you recommend how to fix your tutorial/code?
Louis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!