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
- domainlab.compos.vae.compos package
- Submodules
- domainlab.compos.vae.compos.decoder_concat_vec_reshape_conv module
- domainlab.compos.vae.compos.decoder_concat_vec_reshape_conv_gated_conv module
- domainlab.compos.vae.compos.decoder_cond_prior module
- domainlab.compos.vae.compos.decoder_losses module
- domainlab.compos.vae.compos.encoder module
- domainlab.compos.vae.compos.encoder_dirichlet module
- domainlab.compos.vae.compos.encoder_domain_topic module
- domainlab.compos.vae.compos.encoder_domain_topic_img2topic module
- domainlab.compos.vae.compos.encoder_domain_topic_img_topic2zd module
- domainlab.compos.vae.compos.encoder_xyd_parallel module
- domainlab.compos.vae.compos.encoder_xydt_elevator module
- domainlab.compos.vae.compos.encoder_zy module
- Module contents
- domainlab.compos.vae.compos package
- 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
- Subpackages
Submodules¶
domainlab.compos.a_nn_builder module¶
Integrate Chain-of-Responsibility and Builder Pattern for feature extract
- class domainlab.compos.a_nn_builder.AbstractFeatExtractNNBuilderChainNode(successor_node)[source]¶
Bases:
AbstractChainNodeHandler
to ensure chain of responsibility node AbstractChainNodeHandler always work even some node can not start their heavy weight business object, avoid override the initializer so that node construction is always light weight.
- init_business(dim_out, args, i_c=None, i_h=None, i_w=None, flag_pretrain=None, remove_last_layer=False)[source]¶
initialize and return the heavy weight business object for doing the real job :param request: subclass can override request object to be string or function :return: the constructed service object
domainlab.compos.builder_nn_alex module¶
domainlab.compos.builder_nn_conv_bn_relu_2 module¶
- domainlab.compos.builder_nn_conv_bn_relu_2.mkNodeFeatExtractNNBuilderNameConvBnRelu2(arg_name4net, arg_val, conv_stride)[source]¶
mkNodeFeatExtractNNBuilderNameConvBnRelu2. In chain of responsibility selection of neural network, reuse code to add more possibilities of neural network of the same family. :param arg_name4net: name of nn in args :param arg_val: the registered name of the neural network to be added :param conv_stride: should be 1 for 28*28 images :param i_c: :param i_h: :param i_w: