Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoshuaWu1997/PyTorch-DDPG-Stock-Trading
/ functions
Functions
33 in github.com/JoshuaWu1997/PyTorch-DDPG-Stock-Trading
⨍
Functions
33
◇
Types & classes
7
↓ 6 callers
Function
min_max_scale
(data)
DDPG.py:16
↓ 3 callers
Method
step
(self, position: torch.Tensor)
market.py:41
↓ 2 callers
Method
__init__
(self, time_dim, state_dim, action_dim, hidden_dim)
actor_critic.py:63
↓ 2 callers
Function
hard_copy
(target, source)
actor_critic.py:6
↓ 2 callers
Method
noise
(self)
ou_noise.py:28
↓ 2 callers
Function
soft_copy
(target, source, w=0.01)
actor_critic.py:11
↓ 2 callers
Method
target_action
(self, state)
actor_critic.py:81
↓ 2 callers
Method
train
(self, loss_grad)
actor_critic.py:71
↓ 2 callers
Method
update_target
(self)
actor_critic.py:85
↓ 1 callers
Method
act
(self, next_state, portfolio)
DDPG.py:114
↓ 1 callers
Method
close
(self)
market.py:96
↓ 1 callers
Method
initial
(self)
DDPG.py:53
↓ 1 callers
Method
perceive
(self, state, action, reward, next_state, done)
DDPG.py:96
↓ 1 callers
Method
reset
(self)
market.py:28
↓ 1 callers
Method
reset
(self)
ou_noise.py:23
↓ 1 callers
Method
target_q
(self, next_action_batch, next_state_batch)
actor_critic.py:110
↓ 1 callers
Function
train
(Train_Env, Epoch)
DDPG-agent.py:31
↓ 1 callers
Method
train_on_batch
(self)
DDPG.py:61
Method
__init__
(self, input_dim, hidden_dim, output_dim)
actor_critic.py:20
Method
__init__
(self, input_dim, hidden_dim, output_dim)
actor_critic.py:39
Method
__init__
(self, time_dim, state_dim, action_dim, hidden_dim)
actor_critic.py:90
Method
__init__
(self, env, time_steps, hidden_dim)
DDPG.py:26
Method
__init__
(self, data, seed, asset=1000000.00, unit=100)
market.py:14
Method
__init__
(self, action_dimension, mu=0, theta=0.15, sigma=0.2)
ou_noise.py:14
Method
actor_action
(self, state)
actor_critic.py:77
Method
forward
(self, x)
actor_critic.py:33
Method
forward
(self, a, x)
actor_critic.py:55
Method
plot
(self, path=None, batch_size=1024)
market.py:77
Method
render
(self, mode='human', path=None)
market.py:86
Function
scale
(data)
DDPG-agent.py:23
Method
std_noise
(self, mu, sigma)
ou_noise.py:34
Method
train
(self, y_batch, action_batch, state_batch)
actor_critic.py:100
Method
update_target
(self)
actor_critic.py:114