Unverified Commit 972de844 authored by ByronCHAO's avatar ByronCHAO Committed by GitHub
Browse files

rename accessor to assessor (#3416)

parent 346721be
...@@ -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 accessor want's to be notified when a trial ends, it can also override :meth:`trial_end`. If an assessor 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.
......
...@@ -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
accessor: Optional[_AlgorithmConfig] = None assessor: 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.accessor, config.advisor) != 0: if util.count(config.tuner, config.assessor, config.advisor) != 0:
raise ValueError('ExperimentConfig: tuner, accessor, and advisor must not be set in for this mode') raise ValueError('ExperimentConfig: tuner, assessor, 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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment