def set_hyperparameters(self, hyperparameters):
        """Set new hyperparameters.

        Only the specified hyperparameters are modified, so any other
        hyperparameter keeps the value that had been previously given.

        If necessary, a new instance of the primitive is created.

        Args:
            hyperparameters (dict): Dictionary containing as keys the name
                                    of the hyperparameters and as values
                                    the values to be used.
        """
        self._hyperparameters.update(hyperparameters)

        if self._class:
            LOGGER.debug('Creating a new primitive instance for %s', self.name)
            self.instance = self.primitive(**self._hyperparameters)
def set_hyperparameters ( self , hyperparameters ) : self . _hyperparameters . update ( hyperparameters ) if self . _class : LOGGER . debug ( 'Creating a new primitive instance for %s' , self . name ) self . instance = self . primitive ( ** self . _hyperparameters )
Set new hyperparameters.

        Only the specified hyperparameters are modified, so any other
        hyperparameter keeps the value that had been previously given.

        If necessary, a new instance of the primitive is created.

        Args:
            hyperparameters (dict): Dictionary containing as keys the name
                                    of the hyperparameters and as values
                                    the values to be used.