sgnlp.models.ufd.utils.create_classifiers¶
-
create_classifiers
(cfg: sgnlp.models.ufd.data_class.UFDArguments) → Dict[source]¶ - Helper function to generate all classifier models, criterion and optimizer.
One set of classifier, criterion and optimizer required per source domain.
- Parameters
cfg (UFDArguments) – UFDArguments config load from configuration file
- Returns
return dictionary of models, criterion and optimizer group by source domain.
- Return type
Dict