Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
muzero
Overview
Overview
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
songxinkai
muzero
Commits
26f62896
Commit
26f62896
authored
Feb 03, 2020
by
Werner Duvaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve performance
parent
fd660a25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
README.md
+4
-4
games/lunarlander.py
+8
-10
No files found.
README.md
View file @
26f62896
...
@@ -37,16 +37,16 @@ Testing Lunar Lander :
...
@@ -37,16 +37,16 @@ Testing Lunar Lander :
![
lunarlander training preview
](
https://github.com/werner-duvaud/muzero-general/blob/master/docs/lunarlander_training_preview.png
)
![
lunarlander training preview
](
https://github.com/werner-duvaud/muzero-general/blob/master/docs/lunarlander_training_preview.png
)
## Code structure
![
code structure
](
https://github.com/werner-duvaud/muzero-general/blob/master/docs/how-it-works-werner-duvaud.png
)
## Games already implemented with pretrained network available
## Games already implemented with pretrained network available
*
Cartpole
*
Cartpole
*
Lunar Lander
*
Lunar Lander
*
Connect4
*
Connect4
## Code structure
![
code structure
](
https://github.com/werner-duvaud/muzero-general/blob/master/docs/how-it-works-werner-duvaud.png
)
## Getting started
## Getting started
### Installation
### Installation
...
...
games/lunarlander.py
View file @
26f62896
...
@@ -67,16 +67,14 @@ class MuZeroConfig:
...
@@ -67,16 +67,14 @@ class MuZeroConfig:
Returns:
Returns:
Positive float.
Positive float.
"""
"""
# if trained_steps < 0.2 * self.training_steps:
if
trained_steps
<
0.2
*
self
.
training_steps
:
# return float('inf')
return
float
(
'inf'
)
# if trained_steps < 0.5 * self.training_steps:
if
trained_steps
<
0.5
*
self
.
training_steps
:
# return 0.8
return
0.8
# elif trained_steps < 0.75 * self.training_steps:
elif
trained_steps
<
0.75
*
self
.
training_steps
:
# return 0.5
return
0.5
# else:
else
:
# return 0.25
return
0.25
return
1
class
Game
:
class
Game
:
...
...
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