opennmt/models/model.py
def initialize(self, data_config, params=None):
        """Initializes the model from the data configuration.

        Args:
          data_config: A dictionary containing the data configuration set
            by the user (e.g. vocabularies, tokenization, pretrained embeddings,
            etc.).
          params: A dictionary of hyperparameters.
        """
        if params is None:
            params = {}
        self.params.update(params)
        dropout = self.params.get("dropout")
        if dropout is not None:
            misc.set_dropout(self, dropout)
        self.examples_inputter.initialize(data_config)
Initializes the model from the data configuration.

        Args:
          data_config: A dictionary containing the data configuration set
            by the user (e.g. vocabularies, tokenization, pretrained embeddings,
            etc.).
          params: A dictionary of hyperparameters.
        
Initializes the model from the data configuration.
Initializes the model from the data configuration .
def initialize(self, data_config, params=None):
        if params is None:
            params = {}
        self.params.update(params)
        dropout = self.params.get("dropout")
        if dropout is not None:
            misc.set_dropout(self, dropout)
        self.examples_inputter.initialize(data_config)
def initialize ( self , data_config , params = None ) : if params is None : params = { } self . params . update ( params ) dropout = self . params . get ( "dropout" ) if dropout is not None : misc . set_dropout ( self , dropout ) self . examples_inputter . initialize ( data_config )
Initializes the model from the data configuration.
Initializes the model from the data configuration .
"""Initializes the model from the data configuration.

        Args:
          data_config: A dictionary containing the data configuration set
            by the user (e.g. vocabularies, tokenization, pretrained embeddings,
            etc.).
          params: A dictionary of hyperparameters.
        """
self
data_config
A dictionary containing the data configuration set
by the user .
A dictionary containing the data configuration set by the user .
params
A dictionary of hyperparameters.
A dictionary of hyperparameters .