Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm-tf-agents
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高雅喆
gm-tf-agents
Commits
52e39f73
Commit
52e39f73
authored
Jul 08, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change log dir
parent
67ab4b24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tf_agents_test.py
tf_agents_test.py
+3
-3
No files found.
tf_agents_test.py
View file @
52e39f73
...
...
@@ -18,7 +18,7 @@ r"""Train and Eval DDPG.
To run:
```bash
tensorboard --logdir
$HOME
/tmp/ddpg/gym/HalfCheetah-v2/ --port 2223 &
tensorboard --logdir
./data
/tmp/ddpg/gym/HalfCheetah-v2/ --port 2223 &
python tf_agents/agents/ddpg/examples/v2/train_eval.py
\
--root_dir=$HOME/tmp/ddpg/gym/HalfCheetah-v2/
\
...
...
@@ -66,7 +66,7 @@ from tf_agents.environments import wrappers
from
tf_agents.environments
import
suite_gym
from
tf_agents.trajectories
import
time_step
as
ts
flags
.
DEFINE_string
(
'root_dir'
,
'
$HOME
/tmp/ddpg/gym/HalfCheetah-v2/'
,
flags
.
DEFINE_string
(
'root_dir'
,
'
./data
/tmp/ddpg/gym/HalfCheetah-v2/'
,
'Root directory for writing logs/summaries/checkpoints.'
)
flags
.
DEFINE_integer
(
'num_iterations'
,
100000
,
'Total number train/eval iterations to perform.'
)
...
...
@@ -106,7 +106,7 @@ class CardGameEnv(py_environment.PyEnvironment):
return
self
.
reset
()
# Make sure episodes don't go on forever.
if
action
>=
5
.0
:
if
action
>=
1
.0
:
self
.
_episode_ended
=
True
elif
action
<
1.0
:
new_card
=
np
.
random
.
randint
(
1
,
11
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment