domid package

Subpackages

Submodules

domid.arg_parser module

Command line arguments

domid.arg_parser.mk_parser_main()[source]

Args for command line definition

domid.arg_parser.parse_cmd_args()[source]

Parse given command line arguments

domid.mk_exp module

make an experiment

domid.mk_exp.mk_exp(task, model, trainer: str, train_domain: str, test_domain: str, batchsize: int, pre_tr=5, epos=10, nocu=True, shuffling_off=False, **kwargs)[source]

Creates a custom experiment. The user can specify the input parameters. :param task: use a predefined task in DomId, or create a task to a custom dataset. For more explanation on the input params refer to the documentation found in “domainlab.tasks.task_dset.py”. :param model: create a model [NameOfModel] by importing the appropriate “mk_[NameOfModel]”. For a concrete example and explanation of the input params refer to the documentation found in “domainlab.models.model_[NameOfModel].py” :param string trainer: for instance, ‘ae’, ‘cluster’, ‘sdcn’; see the available trainers under ‘domid/trainers/’ and ‘domainlab/trainers/’ or define your own trainer. :param string test_domain: enumerate which domains from the chosen ‘task’ to use for training (separated by spaces) :param string test_domain: enumerate which domains from the chosen ‘task’ to use for testing (separated by spaces) :param int batchsize: batch size to use for training :param **kwargs: any additional parameters that can be processed by the arg_parser of DomId or DomainLab :return exp: the experiment object

Module contents