Package moa.options

Class DependentOptionsUpdater

    • Method Detail

      • refreshVariedParamNameOption

        public void refreshVariedParamNameOption()
        Refresh the provided choices of an EditableMultiChoiceOption every time a ClassOption (the prequential evaluation task) is changed. This method checks if the chosen task actually changed, before updating the MultiChoiceOption.
        The method looks for available options in the learner option of the prequential evaluation task and recursively in all of its ClassOptions.
        Only Int and Float options are shown in the MultiChoiceOption, because only numeric parameters should be variable.
        If one of the options is named "budget" or its name contains the word "budget", it is selected as the default option.
      • getVariedOption

        public static Option getVariedOption​(OptionHandler learner,
                                             String variedParamName)
        Resolve the name of the varied parameter and return the corresponding option. The varied parameter name has the format "learner/suboptions.../numberOption". If no matching parameter can be found, null is returned.
        Parameters:
        learner - the learner object that has the varied option
        variedParamName - name of the (nested) varied parameter
        Returns:
        varied option