domainlab package¶
Subpackages¶
- domainlab.algos package
- Subpackages
- domainlab.algos.msels package
- domainlab.algos.observers package
- domainlab.algos.trainers package
- Subpackages
- Submodules
- domainlab.algos.trainers.a_trainer module
- domainlab.algos.trainers.args_dial module
- domainlab.algos.trainers.args_miro module
- domainlab.algos.trainers.hyper_scheduler module
- domainlab.algos.trainers.mmd_base module
- domainlab.algos.trainers.train_basic module
- domainlab.algos.trainers.train_causIRL module
- domainlab.algos.trainers.train_coral module
- domainlab.algos.trainers.train_dial module
- domainlab.algos.trainers.train_ema module
- domainlab.algos.trainers.train_fishr module
- domainlab.algos.trainers.train_hyper_scheduler module
- domainlab.algos.trainers.train_irm module
- domainlab.algos.trainers.train_matchdg module
- domainlab.algos.trainers.train_miro module
- domainlab.algos.trainers.train_miro_model_wraper module
- domainlab.algos.trainers.train_miro_utils module
- domainlab.algos.trainers.train_mldg module
- domainlab.algos.trainers.zoo_trainer module
- Module contents
- Submodules
- domainlab.algos.a_algo_builder module
- domainlab.algos.builder_api_model module
- domainlab.algos.builder_custom module
- domainlab.algos.builder_dann module
- domainlab.algos.builder_diva module
- domainlab.algos.builder_erm module
- domainlab.algos.builder_hduva module
- domainlab.algos.builder_jigen1 module
- domainlab.algos.utils module
- domainlab.algos.zoo_algos module
- Module contents
- Subpackages
- domainlab.compos package
- Subpackages
- domainlab.compos.nn_zoo package
- Submodules
- domainlab.compos.nn_zoo.net_adversarial module
- domainlab.compos.nn_zoo.net_classif module
- domainlab.compos.nn_zoo.net_conv_conv_bn_pool_2 module
- domainlab.compos.nn_zoo.net_gated module
- domainlab.compos.nn_zoo.nn module
- domainlab.compos.nn_zoo.nn_alex module
- domainlab.compos.nn_zoo.nn_torchvision module
- Module contents
- domainlab.compos.pcr package
- domainlab.compos.vae package
- Subpackages
- Submodules
- domainlab.compos.vae.a_model_builder module
- domainlab.compos.vae.a_vae_builder module
- domainlab.compos.vae.c_vae_adaptor_model_recon module
- domainlab.compos.vae.c_vae_builder_classif module
- domainlab.compos.vae.c_vae_recon module
- domainlab.compos.vae.utils_request_chain_builder module
- domainlab.compos.vae.zoo_vae_builders_classif module
- domainlab.compos.vae.zoo_vae_builders_classif_topic module
- Module contents
- domainlab.compos.nn_zoo package
- Submodules
- domainlab.compos.a_nn_builder module
- domainlab.compos.builder_nn_alex module
- domainlab.compos.builder_nn_conv_bn_relu_2 module
- domainlab.compos.builder_nn_external_from_file module
- domainlab.compos.utils_conv_get_flat_dim module
- domainlab.compos.zoo_nn module
- Module contents
- Subpackages
- domainlab.dsets package
- Submodules
- domainlab.dsets.a_dset_mnist_color_rgb_solo module
- domainlab.dsets.dset_img_path_list module
- domainlab.dsets.dset_mnist_color_solo_default module
- domainlab.dsets.dset_poly_domains_mnist_color_default module
- domainlab.dsets.dset_subfolder module
- domainlab.dsets.utils_color_palette module
- domainlab.dsets.utils_data module
- domainlab.dsets.utils_wrapdset_patches module
- Module contents
- domainlab.exp package
- domainlab.exp_protocol package
- domainlab.models package
- Submodules
- domainlab.models.a_model module
AModel
AModel.cal_loss()
AModel.cal_reg_loss()
AModel.cal_task_loss()
AModel.dset_decoration_args_algo()
AModel.extend()
AModel.extract_semantic_feat()
AModel.forward()
AModel.list_inner_product()
AModel.load()
AModel.metric4msel
AModel.multiplier4task_loss
AModel.name
AModel.net_invar_feat
AModel.p_na_prefix
AModel.print_parameters()
AModel.reset_aux_net()
AModel.reset_feature_extractor()
AModel.save()
AModel.set_saver()
- domainlab.models.a_model_classif module
AModelClassif
AModelClassif.cal_logit_y()
AModelClassif.cal_loss_gen_adv()
AModelClassif.cal_perf_metric()
AModelClassif.cal_task_loss()
AModelClassif.create_perf_obj()
AModelClassif.dim_y
AModelClassif.evaluate()
AModelClassif.extend()
AModelClassif.extract_semantic_feat()
AModelClassif.infer_y_vpicn()
AModelClassif.match_feat_fun_na
AModelClassif.metric4msel
AModelClassif.net_classifier
AModelClassif.pred2file()
AModelClassif.read_prediction_file()
- domainlab.models.args_jigen module
- domainlab.models.args_vae module
- domainlab.models.interface_vae_xyd module
- domainlab.models.model_custom module
- domainlab.models.model_dann module
- domainlab.models.model_diva module
- domainlab.models.model_erm module
- domainlab.models.model_hduva module
- domainlab.models.model_jigen module
- domainlab.models.model_vae_xyd_classif module
- Module contents
- domainlab.tasks package
- Submodules
- domainlab.tasks.a_task module
NodeTaskDG
NodeTaskDG.conf_without_args()
NodeTaskDG.get_list_domains()
NodeTaskDG.get_list_domains_tr_te()
NodeTaskDG.get_na()
NodeTaskDG.init_business()
NodeTaskDG.is_myjob()
NodeTaskDG.isize
NodeTaskDG.list_domain_tr
NodeTaskDG.loader_te
NodeTaskDG.loader_tr
NodeTaskDG.loader_val
NodeTaskDG.set_list_domains()
NodeTaskDG.task_name
- domainlab.tasks.a_task_classif module
- domainlab.tasks.b_task module
- domainlab.tasks.b_task_classif module
- domainlab.tasks.task_dset module
- domainlab.tasks.task_folder module
- domainlab.tasks.task_folder_mk module
- domainlab.tasks.task_mini_vlcs module
- domainlab.tasks.task_mnist_color module
- domainlab.tasks.task_pathlist module
- domainlab.tasks.task_utils module
- domainlab.tasks.utils_task module
- domainlab.tasks.utils_task_dset module
- domainlab.tasks.zoo_tasks module
- Module contents
- domainlab.utils package
- Submodules
- domainlab.utils.flows_gen_img_model module
- domainlab.utils.generate_benchmark_plots module
- domainlab.utils.get_git_tag module
- domainlab.utils.hyperparameter_gridsearch module
add_next_param_from_list()
add_references_and_check_constraints()
add_shared_params_to_param_grids()
build_param_grid_of_shared_params()
grid_task()
lognormal_grid()
loguniform_grid()
normal_grid()
rais_error_if_num_not_specified()
round_to_discreate_grid_normal()
round_to_discreate_grid_uniform()
sample_grid()
sample_gridsearch()
uniform_grid()
- domainlab.utils.hyperparameter_retrieval module
- domainlab.utils.hyperparameter_sampling module
- domainlab.utils.logger module
- domainlab.utils.override_interface module
- domainlab.utils.perf module
- domainlab.utils.perf_metrics module
- domainlab.utils.sanity_check module
- domainlab.utils.test_img module
- domainlab.utils.u_import module
- domainlab.utils.u_import_net_module module
- domainlab.utils.utils_class module
- domainlab.utils.utils_classif module
- domainlab.utils.utils_cuda module
- domainlab.utils.utils_img_sav module
- Module contents
Submodules¶
domainlab.arg_parser module¶
Command line arguments
- class domainlab.arg_parser.ParseValuesOrKeyValuePairs(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
Bases:
Action
Class used for arg parsing where values are provided in a key value format
domainlab.cli module¶
command-line interface (CLI) for the domainlab package
domainlab.mk_exp module¶
make an experiment
- domainlab.mk_exp.mk_exp(task, model, trainer: str, test_domain: str, batchsize: int, nocu=False)[source]¶
Creates a custom experiment. The user can specify the input parameters.
- Input Parameters:
task: create a task to a custom dataset by importing “mk_task_dset” function from
“domainlab.tasks.task_dset”. For more explanation on the input params refer to the documentation found in “domainlab.tasks.task_dset.py”. - model: create a model [NameOfModel] by importing “mk_[NameOfModel]” function from “domainlab.models.model_[NameOfModel]”. For a concrete example and explanation of the input params refer to the documentation found in “domainlab.models.model_[NameOfModel].py” - trainer: string, - test_domain: string, - batch size: int
Returns: experiment
Module contents¶
globals for the whole package