finol.model_layer.ModelInstantiator

class finol.model_layer.ModelInstantiator(load_dataset_output)[原始碼]

Class to instantiate model class based on the provided configuration.

參數:

load_dataset_output (Dict) – Dictionary containing output from function load_dataset().

Methods

instantiate_model([sampled_params])

Instantiate a model based on the configuration provided in the class.

instantiate_model(sampled_params=None)[原始碼]

Instantiate a model based on the configuration provided in the class.

This method retrieves the model class defined in the configuration, and creates an instance of the model that is moved to the designated device.

回傳:

An instance of the specified model class.

回傳型別:

Module