Skip to content

Commit

Permalink
docs: add README outline
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshub committed Mar 25, 2020
1 parent 7a7cee6 commit 4e9757d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
stockdata
model
log
.vscode/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 强化学习模拟股票交易

## 前言

## 强化学习与监督学习的区别

## OpenAI Gym 股票交易环境

### 观测

### 动作

### 奖励

## 仿真实验

### 股票数据获取

### 训练集和测试集

### 验证结果

## 结语
2 changes: 1 addition & 1 deletion rlenv/StockTradingEnv0.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def step(self, action):

obs = self._next_observation()

print(f'{self.current_step} reward = {int(reward)} max obs {obs.max()}')
# print(f'{self.current_step} reward = {int(reward)} max obs {obs.max()}')
if reward > 0:
reward = 1
elif reward < 0:
Expand Down

0 comments on commit 4e9757d

Please sign in to comment.