utilsΒΆ

Functions

create_classifiers

Helper function to generate all classifier models, criterion and optimizer.

create_dataset_embedding

Main helper wrapper function to generate datasets.

create_train_embeddings

Helper function to generate training dataset for supervised and unsupervised training.

create_unsupervised_models

Helper function to create the unsupervised model group.

create_val_test_embeddings

Helper function to generate validation dataset for supervised and unsupervised training.

extract_embeddings

Helper function to extract embeddings with the UFD embedding model.

generate_train_val_dataset

Helper function to generate train and validation datasets.

get_source2target_domain_mapping

Helper function to return cross domains keys for each domains.

load_labelled

Helper function to load labelled dataset for supervised training.

load_trained_models

Helper function to load pretrained config and model weights for both supervised and unsupervised

load_unlabelled

Helper function to load unlabelled dataset for unsupervised training.

parse_args_and_load_config

Args parser helper method