def fix_config(self, options):
        """
        Fixes the options, if necessary. I.e., it adds all required elements to the dictionary.

        :param options: the options to fix
        :type options: dict
        :return: the (potentially) fixed options
        :rtype: dict
        """
        opt = "search"
        if opt not in options:
            options[opt] = attsel.ASSearch(classname="weka.attributeSelection.BestFirst")
        if opt not in self.help:
            self.help[opt] = "The search algorithm to use (ASSearch)."

        opt = "eval"
        if opt not in options:
            options[opt] = attsel.ASEvaluation(classname="weka.attributeSelection.CfsSubsetEval")
        if opt not in self.help:
            self.help[opt] = "The evaluation algorithm to use (ASEvaluation)."

        return super(AttributeSelection, self).fix_config(options)
def fix_config ( self , options ) : opt = "search" if opt not in options : options [ opt ] = attsel . ASSearch ( classname = "weka.attributeSelection.BestFirst" ) if opt not in self . help : self . help [ opt ] = "The search algorithm to use (ASSearch)." opt = "eval" if opt not in options : options [ opt ] = attsel . ASEvaluation ( classname = "weka.attributeSelection.CfsSubsetEval" ) if opt not in self . help : self . help [ opt ] = "The evaluation algorithm to use (ASEvaluation)." return super ( AttributeSelection , self ) . fix_config ( options )
Fixes the options, if necessary. I.e., it adds all required elements to the dictionary.

        :param options: the options to fix
        :type options: dict
        :return: the (potentially) fixed options
        :rtype: dict