sgnlp.models.ufd.eval.test_ufd

test_ufd(test_data: List, adaptor_global: sgnlp.models.ufd.modeling.UFDAdaptorGlobalModel, adaptor_domain: sgnlp.models.ufd.modeling.UFDAdaptorDomainModel, maper: sgnlp.models.ufd.modeling.UFDCombineFeaturesMapModel, model: sgnlp.models.ufd.modeling.UFDClassifierModel, criterion: torch.nn.modules.loss.CrossEntropyLoss, cfg: sgnlp.models.ufd.data_class.UFDArguments)float[source]

Test step method for UFD evaluation

Parameters
Returns

loss calculated for the test step

Return type

float