sidharth72 / commentsystem

0 stars 0 forks source link

https://www.pycodemates.com/2023/08/stock-trading-ai-using-deep-reinforcement-learning-python.html #4

Open utterances-bot opened 7 months ago

utterances-bot commented 7 months ago

Stock Trading AI Bot Using Python | ML Trading - PyCodeMates

The project at hand focuses on creating an AI system that can be used specifically for trading. It's all about making trading a bit smarter and easier

https://www.pycodemates.com/2023/08/stock-trading-ai-using-deep-reinforcement-learning-python.html

decu07 commented 7 months ago

Hello, can you give me instructions on how to use the pre-trained model?

sidharth72 commented 7 months ago

You can download the model from the drive link and then simply load the model using this code,

from stable_baselines3 import PPO

pretrained_model_path = 'path/to/your/pretrained_model.zip'

model = PPO('MlpPolicy', 'your_environment', verbose=1)

model.load(pretrained_model_path)

After that you can follow the same guide to train and use it again

Thanks!

decu07 commented 7 months ago

thank you so much How can I configure an API Key, for example from (Yahoo Finance), so that it can analyze the live EUR/USD market. and can make predictions in real time?

El dom, 19 nov 2023 a las 9:40, Sidharthan GN @.***>) escribió:

You can download the model from the drive link and then simply load the model using this code,

from stable_baselines3 import PPO Specify the path to your pretrained model file

pretrained_model_path = 'path/to/your/pretrained_model.zip' Create an instance of the PPO model

model = PPO('MlpPolicy', 'your_environment', verbose=1) Load the pretrained model

model.load(pretrained_model_path)

After that you can follow the same guide to train and use it again

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/sidharth72/commentsystem/issues/4#issuecomment-1817858975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQW5CWR7CYEB6P6ZCGOQCB3YFID3BAVCNFSM6AAAAAA7RXB32SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHA2TQOJXGU . You are receiving this because you commented.Message ID: @.***>