original_docstring: Instantiates the classes using settings from self.config.
docstring: Instantiates the classes using settings from self.config.
docstring_tokens: Instantiates the classes using settings from self . config .
code: def instantiate_classes(self) -> None:
          """Instantiates the classes using settings from self.config."""
          sub_config = self.config.get("subcommand")
          self.datamodule = self._subcommand_builders[sub_config](**self.config.get(sub_config))
  
          for datamodule_attribute in self.datamodule_attributes:
              if datamodule_attribute in self.config["model"]:
                  if getattr(self.datamodule, datamodule_attribute, None) is not None:
                      self.config["model"][datamodule_attribute] = getattr(self.datamodule, datamodule_attribute)
          self.config_init = self.parser.instantiate_classes(self.config)
          self.model = self.config_init["model"]
          self.instantiate_trainer()
code_tokens: def instantiate_classes ( self ) -> None : sub_config = self . config . get ( "subcommand" ) self . datamodule = self . _subcommand_builders [ sub_config ] ( ** self . config . get ( sub_config ) ) for datamodule_attribute in self . datamodule_attributes : if datamodule_attribute in self . config [ "model" ] : if getattr ( self . datamodule , datamodule_attribute , None ) is not None : self . config [ "model" ] [ datamodule_attribute ] = getattr ( self . datamodule , datamodule_attribute ) self . config_init = self . parser . instantiate_classes ( self . config ) self . model = self . config_init [ "model" ] self . instantiate_trainer ( )
short_docstring: Instantiates the classes using settings from self.config.
short_docstring_tokens: Instantiates the classes using settings from self . config .
comment: """Instantiates the classes using settings from self.config."""