deeppavlov/core/models/keras_model.py
def _update_graph_variables(self, learning_rate: float = None, momentum: float = None):
        """
        Update graph variables setting giving `learning_rate` and `momentum`

        Args:
            learning_rate: learning rate value to be set in graph (set if not None)
            momentum: momentum value to be set in graph (set if not None)

        Returns:
            None
        """
        if learning_rate is not None:
            K.set_value(self.get_learning_rate_variable(), learning_rate)
            # log.info(f"Learning rate = {learning_rate}")
        if momentum is not None:
            K.set_value(self.get_momentum_variable(), momentum)
def _update_graph_variables(self, learning_rate: float = None, momentum: float = None):
        if learning_rate is not None:
            K.set_value(self.get_learning_rate_variable(), learning_rate)
            # log.info(f"Learning rate = {learning_rate}")
        if momentum is not None:
            K.set_value(self.get_momentum_variable(), momentum)
def _update_graph_variables ( self , learning_rate : float = None , momentum : float = None ) : if learning_rate is not None : K . set_value ( self . get_learning_rate_variable ( ) , learning_rate ) # log.info(f"Learning rate = {learning_rate}") if momentum is not None : K . set_value ( self . get_momentum_variable ( ) , momentum )
Update graph variables setting giving `learning_rate` and `momentum`

        Args:
            learning_rate: learning rate value to be set in graph (set if not None)
            momentum: momentum value to be set in graph (set if not None)

        Returns:
            None
Update graph variables setting giving learning_rate and momentum