Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
46954344
"...hubert/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "26f62dc5beab1ec9d36250c396726c4085ab36c2"
Commit
46954344
authored
Oct 06, 2018
by
Sinan Tan
Committed by
xuehui
Oct 06, 2018
Browse files
Bug fix for SQuAD example tuner. (#134)
parent
2921e143
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/tuners/ga_customer_tuner/customer_tuner.py
examples/tuners/ga_customer_tuner/customer_tuner.py
+3
-3
No files found.
examples/tuners/ga_customer_tuner/customer_tuner.py
View file @
46954344
...
@@ -61,7 +61,8 @@ class Individual(object):
...
@@ -61,7 +61,8 @@ class Individual(object):
def
mutation
(
self
,
config
=
None
,
info
=
None
,
save_dir
=
None
):
def
mutation
(
self
,
config
=
None
,
info
=
None
,
save_dir
=
None
):
self
.
result
=
None
self
.
result
=
None
self
.
config
=
config
if
config
is
not
None
:
self
.
config
=
config
self
.
config
.
mutation
()
self
.
config
.
mutation
()
self
.
restore_dir
=
self
.
save_dir
self
.
restore_dir
=
self
.
save_dir
self
.
save_dir
=
save_dir
self
.
save_dir
=
save_dir
...
@@ -121,8 +122,7 @@ class CustomerTuner(Tuner):
...
@@ -121,8 +122,7 @@ class CustomerTuner(Tuner):
logger
.
debug
(
str
(
parameters
))
logger
.
debug
(
str
(
parameters
))
logger
.
debug
(
str
(
reward
))
logger
.
debug
(
str
(
reward
))
indiv
=
graph_loads
(
parameters
)
indiv
=
Individual
(
graph_loads
(
parameters
),
result
=
reward
)
indiv
.
result
=
reward
self
.
population
.
append
(
indiv
)
self
.
population
.
append
(
indiv
)
return
return
...
...
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