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
972de844
Unverified
Commit
972de844
authored
Mar 03, 2021
by
ByronCHAO
Committed by
GitHub
Mar 03, 2021
Browse files
rename accessor to assessor (#3416)
parent
346721be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
nni/assessor.py
nni/assessor.py
+1
-1
nni/experiment/config/common.py
nni/experiment/config/common.py
+3
-3
No files found.
nni/assessor.py
View file @
972de844
...
@@ -43,7 +43,7 @@ class Assessor(Recoverable):
...
@@ -43,7 +43,7 @@ class Assessor(Recoverable):
it hints NNI framework that the trial is likely to result in a poor final accuracy,
it hints NNI framework that the trial is likely to result in a poor final accuracy,
and therefore should be killed to save resource.
and therefore should be killed to save resource.
If an a
cc
essor want's to be notified when a trial ends, it can also override :meth:`trial_end`.
If an a
ss
essor want's to be notified when a trial ends, it can also override :meth:`trial_end`.
To write a new assessor, you can reference :class:`~nni.medianstop_assessor.MedianstopAssessor`'s code as an example.
To write a new assessor, you can reference :class:`~nni.medianstop_assessor.MedianstopAssessor`'s code as an example.
...
...
nni/experiment/config/common.py
View file @
972de844
...
@@ -63,7 +63,7 @@ class ExperimentConfig(ConfigBase):
...
@@ -63,7 +63,7 @@ class ExperimentConfig(ConfigBase):
experiment_working_directory
:
Optional
[
PathLike
]
=
None
experiment_working_directory
:
Optional
[
PathLike
]
=
None
tuner_gpu_indices
:
Optional
[
Union
[
List
[
int
],
str
]]
=
None
tuner_gpu_indices
:
Optional
[
Union
[
List
[
int
],
str
]]
=
None
tuner
:
Optional
[
_AlgorithmConfig
]
=
None
tuner
:
Optional
[
_AlgorithmConfig
]
=
None
a
cc
essor
:
Optional
[
_AlgorithmConfig
]
=
None
a
ss
essor
:
Optional
[
_AlgorithmConfig
]
=
None
advisor
:
Optional
[
_AlgorithmConfig
]
=
None
advisor
:
Optional
[
_AlgorithmConfig
]
=
None
training_service
:
Union
[
TrainingServiceConfig
,
List
[
TrainingServiceConfig
]]
training_service
:
Union
[
TrainingServiceConfig
,
List
[
TrainingServiceConfig
]]
...
@@ -127,8 +127,8 @@ def _validate_for_exp(config: ExperimentConfig) -> None:
...
@@ -127,8 +127,8 @@ def _validate_for_exp(config: ExperimentConfig) -> None:
raise
ValueError
(
'ExperimentConfig: annotation is not supported in this mode'
)
raise
ValueError
(
'ExperimentConfig: annotation is not supported in this mode'
)
if
util
.
count
(
config
.
search_space
,
config
.
search_space_file
)
!=
1
:
if
util
.
count
(
config
.
search_space
,
config
.
search_space_file
)
!=
1
:
raise
ValueError
(
'ExperimentConfig: search_space and search_space_file must be set one'
)
raise
ValueError
(
'ExperimentConfig: search_space and search_space_file must be set one'
)
if
util
.
count
(
config
.
tuner
,
config
.
a
cc
essor
,
config
.
advisor
)
!=
0
:
if
util
.
count
(
config
.
tuner
,
config
.
a
ss
essor
,
config
.
advisor
)
!=
0
:
raise
ValueError
(
'ExperimentConfig: tuner, a
cc
essor, and advisor must not be set in for this mode'
)
raise
ValueError
(
'ExperimentConfig: tuner, a
ss
essor, and advisor must not be set in for this mode'
)
if
config
.
tuner_gpu_indices
is
not
None
:
if
config
.
tuner_gpu_indices
is
not
None
:
raise
ValueError
(
'ExperimentConfig: tuner_gpu_indices is not supported in this mode'
)
raise
ValueError
(
'ExperimentConfig: tuner_gpu_indices is not supported in this mode'
)
...
...
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