Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lli
YM-Seminar
Commits
b9ff612e
Commit
b9ff612e
authored
Apr 20, 2021
by
lli
Browse files
change tau value for boltzmann
parent
d289fe1f
Changes
1
Show whitespace changes
Inline
Side-by-side
algorithms/dqn.py
View file @
b9ff612e
...
...
@@ -55,7 +55,7 @@ class DQN(nn.Module):
q_values
=
self
.
predict
(
state
)
return
torch
.
argmax
(
q_values
).
item
()
def
boltzmann_policy
(
self
,
state
,
n_action
,
tau
=
1
,
clip
=
(
-
500.
,
500.
)):
def
boltzmann_policy
(
self
,
state
,
n_action
,
tau
=
0.5
,
clip
=
(
-
500.
,
500.
)):
"""
Boltzmann policy builds a probability law on q values and returns an
action selected randomly according to this law
...
...
Write
Preview
Supports
Markdown
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