Amós e Souza Fernandes
commited on
Upload 34 files
Browse filesCommit ajust ppo 4 e 5
- agents/__pycache__/DeepPortfolioAgent.cpython-312.pyc +0 -0
- agents/__pycache__/custom_policies.cpython-312.pyc +0 -0
- agents/__pycache__/data_handler_multi_asset.cpython-312.pyc +0 -0
- agents/__pycache__/deep_portfolio.cpython-312.pyc +0 -0
- agents/__pycache__/deep_portfolio_torch.cpython-312.pyc +0 -0
- agents/__pycache__/portfolio_environment.cpython-312.pyc +0 -0
- agents/__pycache__/portfolio_features_extractor_torch.cpython-312.pyc +0 -0
- agents/ppo_deep_portfolio_tensorboard/PPO_3/events.out.tfevents.1750336135.verticalagent-X555LPB.200649.0 +2 -2
- agents/ppo_deep_portfolio_tensorboard/PPO_4/events.out.tfevents.1750378516.codespaces-72cb68.19798.0 +3 -0
- agents/ppo_deep_portfolio_tensorboard/PPO_5/events.out.tfevents.1750410414.codespaces-72cb68.3578.0 +3 -0
- agents/requirements.txt +21 -0
- agents/train_rl_portfolio_agent.py +9 -1
agents/__pycache__/DeepPortfolioAgent.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/DeepPortfolioAgent.cpython-312.pyc and b/agents/__pycache__/DeepPortfolioAgent.cpython-312.pyc differ
|
|
|
agents/__pycache__/custom_policies.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/custom_policies.cpython-312.pyc and b/agents/__pycache__/custom_policies.cpython-312.pyc differ
|
|
|
agents/__pycache__/data_handler_multi_asset.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/data_handler_multi_asset.cpython-312.pyc and b/agents/__pycache__/data_handler_multi_asset.cpython-312.pyc differ
|
|
|
agents/__pycache__/deep_portfolio.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/deep_portfolio.cpython-312.pyc and b/agents/__pycache__/deep_portfolio.cpython-312.pyc differ
|
|
|
agents/__pycache__/deep_portfolio_torch.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/deep_portfolio_torch.cpython-312.pyc and b/agents/__pycache__/deep_portfolio_torch.cpython-312.pyc differ
|
|
|
agents/__pycache__/portfolio_environment.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/portfolio_environment.cpython-312.pyc and b/agents/__pycache__/portfolio_environment.cpython-312.pyc differ
|
|
|
agents/__pycache__/portfolio_features_extractor_torch.cpython-312.pyc
CHANGED
|
Binary files a/agents/__pycache__/portfolio_features_extractor_torch.cpython-312.pyc and b/agents/__pycache__/portfolio_features_extractor_torch.cpython-312.pyc differ
|
|
|
agents/ppo_deep_portfolio_tensorboard/PPO_3/events.out.tfevents.1750336135.verticalagent-X555LPB.200649.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1151fed33aec6cc9628f2e43069beffea62111c99b8df51e6d6e931d4344e0fa
|
| 3 |
+
size 73043
|
agents/ppo_deep_portfolio_tensorboard/PPO_4/events.out.tfevents.1750378516.codespaces-72cb68.19798.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdcafa1e287ffe27346e8d213bf845cb7f46bdece2f1692f46f46e4809346342
|
| 3 |
+
size 228023
|
agents/ppo_deep_portfolio_tensorboard/PPO_5/events.out.tfevents.1750410414.codespaces-72cb68.3578.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba6ebefbf1cee5edb5d52fa22c9f6ca11c3e3db0214711cfdacd96d54d0c9c98
|
| 3 |
+
size 744
|
agents/requirements.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pandas
|
| 2 |
+
numpy
|
| 3 |
+
scikit-learn
|
| 4 |
+
tensorflow
|
| 5 |
+
streamlit
|
| 6 |
+
matplotlib
|
| 7 |
+
fastapi
|
| 8 |
+
uvicorn
|
| 9 |
+
httpx
|
| 10 |
+
pydantic
|
| 11 |
+
python-dotenv
|
| 12 |
+
loguru
|
| 13 |
+
# agno @ git+https://github.com/agno-agi/agno.git
|
| 14 |
+
jinja2
|
| 15 |
+
yfinance
|
| 16 |
+
PyJWT
|
| 17 |
+
transformers
|
| 18 |
+
gymnasium
|
| 19 |
+
tf-keras
|
| 20 |
+
ccxt
|
| 21 |
+
pandas_ta
|
agents/train_rl_portfolio_agent.py
CHANGED
|
@@ -661,9 +661,17 @@ model_ppo = PPO(
|
|
| 661 |
print("Iniciando treinamento do agente PPO com rede customizada...")
|
| 662 |
model_ppo.learn(total_timesteps=1000000, progress_bar=True) # Comece com menos timesteps para teste (ex: 50k)
|
| 663 |
|
| 664 |
-
model_ppo.save("
|
| 665 |
print("Modelo RL com política customizada treinado e salvo.")
|
| 666 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 667 |
#----------
|
| 668 |
|
| 669 |
|
|
|
|
| 661 |
print("Iniciando treinamento do agente PPO com rede customizada...")
|
| 662 |
model_ppo.learn(total_timesteps=1000000, progress_bar=True) # Comece com menos timesteps para teste (ex: 50k)
|
| 663 |
|
| 664 |
+
model_ppo.save("app/model/ppo_custom_deep_portfolio_agent")
|
| 665 |
print("Modelo RL com política customizada treinado e salvo.")
|
| 666 |
|
| 667 |
+
model_ppo.save("app/model/model3")
|
| 668 |
+
print("Modelo RL com política customizada treinado e salvo.")
|
| 669 |
+
|
| 670 |
+
model_ppo.save("app/model/model2.h5")
|
| 671 |
+
print("Modelo RL com política customizada treinado e salvo.")
|
| 672 |
+
|
| 673 |
+
|
| 674 |
+
|
| 675 |
#----------
|
| 676 |
|
| 677 |
|