tabensemb.model.TorchModel.new_model#

method

TorchModel.new_model(model_name: str, verbose: bool, **kwargs)#

A wrapper method to generate a new model while keeping the random seed constant.

Parameters:
model_name:

The name of a selected model.

verbose:

Verbosity.

**kwargs:

Parameters to generate the model. It contains all arguments in _initial_values().

Returns:
Any

A new model (without any restriction to its type). It will be passed to _train_single_model() and _pred_single_model().

See also

_new_model()