Skip to content

Commit 6f73fe2

Browse files
authored
fix(eltociear): typo in gyn any_trading env (#654)
defination -> definition
1 parent b094f5e commit 6f73fe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dizoo/gym_anytrading/envs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If profit or loss occurs, it means that one of the following two cycles in state
5757

5858
### Current Profit Calculation
5959

60-
According to the above defination, we can easily know that the formula of accumulative profit is:
60+
According to the above definition, we can easily know that the formula of accumulative profit is:
6161

6262
$\prod_{buying\ long}(r_{curr}/r_{pre}\ *\ cost) + \prod_{short\ selling}((2-r_{curr}/r_{pre})\ *\ cost)$
6363

@@ -78,7 +78,7 @@ Comparing the objective function ($\mathbb{E}_{\tau}\sum\ r$) in reinforcement l
7878
so that maximize $\mathbb{E}_{\tau} \sum r$
7979
is equivalent to maximize $\mathbb{E}_{\tau}[\prod_{buying\ long}(r_{curr}/r_{pre}\ *\ cost) + \prod_{short\ selling}((2-r_{curr}/r_{pre})\ *\ cost)]$
8080

81-
The experimental results show that such a defination is better than the original gym-anytrading accumulated reward function :$\sum(r_{curr} - r_{pre})$.
81+
The experimental results show that such a definition is better than the original gym-anytrading accumulated reward function :$\sum(r_{curr} - r_{pre})$.
8282
### Render Function
8383

8484
As you see, you can use `render` method to plot the position and profit at one episode.

0 commit comments

Comments
 (0)