From e1ed0b987e68b8306cded58348e948fcb000537a Mon Sep 17 00:00:00 2001
From: smilesun
Date: Fri, 27 Sep 2024 16:12:54 +0200
Subject: [PATCH] fix irl doc
---
docs/build/html/.buildinfo | 2 +-
docs/build/html/_modules/domainlab.html | 12 +-
.../domainlab/algos/a_algo_builder.html | 12 +-
.../domainlab/algos/builder_api_model.html | 12 +-
.../domainlab/algos/builder_custom.html | 12 +-
.../domainlab/algos/builder_dann.html | 12 +-
.../domainlab/algos/builder_diva.html | 12 +-
.../_modules/domainlab/algos/builder_erm.html | 12 +-
.../domainlab/algos/builder_hduva.html | 12 +-
.../domainlab/algos/builder_jigen1.html | 12 +-
.../domainlab/algos/msels/a_model_sel.html | 12 +-
.../domainlab/algos/msels/c_msel_oracle.html | 12 +-
.../domainlab/algos/msels/c_msel_tr_loss.html | 12 +-
.../domainlab/algos/msels/c_msel_val.html | 12 +-
.../domainlab/algos/observers/a_observer.html | 12 +-
.../algos/observers/b_obvisitor.html | 12 +-
.../algos/observers/c_obvisitor_cleanup.html | 12 +-
.../algos/observers/c_obvisitor_gen.html | 12 +-
.../domainlab/algos/trainers/a_trainer.html | 12 +-
.../domainlab/algos/trainers/args_dial.html | 12 +-
.../algos/trainers/compos/matchdg_args.html | 12 +-
.../algos/trainers/compos/matchdg_match.html | 12 +-
.../algos/trainers/compos/matchdg_utils.html | 12 +-
.../algos/trainers/hyper_scheduler.html | 12 +-
.../domainlab/algos/trainers/mmd_base.html | 12 +-
.../domainlab/algos/trainers/train_basic.html | 12 +-
.../algos/trainers/train_causIRL.html | 12 +-
.../domainlab/algos/trainers/train_coral.html | 12 +-
.../domainlab/algos/trainers/train_dial.html | 12 +-
.../domainlab/algos/trainers/train_ema.html | 12 +-
.../domainlab/algos/trainers/train_fishr.html | 12 +-
.../algos/trainers/train_hyper_scheduler.html | 12 +-
.../domainlab/algos/trainers/train_irm.html | 12 +-
.../algos/trainers/train_matchdg.html | 12 +-
.../domainlab/algos/trainers/train_mldg.html | 12 +-
.../domainlab/algos/trainers/zoo_trainer.html | 12 +-
.../_modules/domainlab/algos/zoo_algos.html | 12 +-
.../html/_modules/domainlab/arg_parser.html | 12 +-
.../domainlab/compos/a_nn_builder.html | 12 +-
.../domainlab/compos/builder_nn_alex.html | 12 +-
.../compos/builder_nn_conv_bn_relu_2.html | 12 +-
.../compos/builder_nn_external_from_file.html | 12 +-
.../compos/nn_zoo/net_adversarial.html | 12 +-
.../domainlab/compos/nn_zoo/net_classif.html | 12 +-
.../nn_zoo/net_conv_conv_bn_pool_2.html | 12 +-
.../domainlab/compos/nn_zoo/net_gated.html | 12 +-
.../_modules/domainlab/compos/nn_zoo/nn.html | 12 +-
.../domainlab/compos/nn_zoo/nn_alex.html | 12 +-
.../compos/nn_zoo/nn_torchvision.html | 12 +-
.../domainlab/compos/pcr/p_chain_handler.html | 12 +-
.../domainlab/compos/pcr/request.html | 12 +-
.../compos/utils_conv_get_flat_dim.html | 12 +-
.../domainlab/compos/vae/a_model_builder.html | 12 +-
.../domainlab/compos/vae/a_vae_builder.html | 12 +-
.../compos/vae/c_vae_adaptor_model_recon.html | 12 +-
.../compos/vae/c_vae_builder_classif.html | 12 +-
.../domainlab/compos/vae/c_vae_recon.html | 12 +-
.../decoder_concat_vec_reshape_conv.html | 12 +-
...er_concat_vec_reshape_conv_gated_conv.html | 12 +-
.../compos/vae/compos/decoder_cond_prior.html | 12 +-
.../compos/vae/compos/decoder_losses.html | 12 +-
.../domainlab/compos/vae/compos/encoder.html | 12 +-
.../compos/vae/compos/encoder_dirichlet.html | 12 +-
.../vae/compos/encoder_domain_topic.html | 12 +-
.../encoder_domain_topic_img2topic.html | 12 +-
.../encoder_domain_topic_img_topic2zd.html | 12 +-
.../vae/compos/encoder_xyd_parallel.html | 12 +-
.../vae/compos/encoder_xydt_elevator.html | 12 +-
.../compos/vae/compos/encoder_zy.html | 12 +-
.../vae/utils_request_chain_builder.html | 12 +-
.../compos/vae/zoo_vae_builders_classif.html | 12 +-
.../vae/zoo_vae_builders_classif_topic.html | 12 +-
.../_modules/domainlab/compos/zoo_nn.html | 12 +-
.../dsets/a_dset_mnist_color_rgb_solo.html | 12 +-
.../domainlab/dsets/dset_img_path_list.html | 12 +-
.../dsets/dset_mnist_color_solo_default.html | 12 +-
...dset_poly_domains_mnist_color_default.html | 12 +-
.../domainlab/dsets/dset_subfolder.html | 12 +-
.../_modules/domainlab/dsets/utils_data.html | 12 +-
.../dsets/utils_wrapdset_patches.html | 12 +-
.../_modules/domainlab/exp/exp_cuda_seed.html | 12 +-
.../html/_modules/domainlab/exp/exp_main.html | 513 ------------
.../_modules/domainlab/exp/exp_utils.html | 668 ---------------
.../exp_protocol/aggregate_results.html | 12 +-
.../exp_protocol/run_experiment.html | 565 -------------
.../build/html/_modules/domainlab/mk_exp.html | 411 ---------
.../_modules/domainlab/models/a_model.html | 12 +-
.../domainlab/models/a_model_classif.html | 12 +-
.../_modules/domainlab/models/args_jigen.html | 12 +-
.../_modules/domainlab/models/args_vae.html | 12 +-
.../domainlab/models/interface_vae_xyd.html | 12 +-
.../domainlab/models/model_custom.html | 12 +-
.../_modules/domainlab/models/model_dann.html | 12 +-
.../_modules/domainlab/models/model_diva.html | 12 +-
.../domainlab/models/model_hduva.html | 12 +-
.../domainlab/models/model_jigen.html | 12 +-
.../models/model_vae_xyd_classif.html | 12 +-
.../html/_modules/domainlab/tasks/a_task.html | 12 +-
.../domainlab/tasks/a_task_classif.html | 12 +-
.../html/_modules/domainlab/tasks/b_task.html | 12 +-
.../domainlab/tasks/b_task_classif.html | 12 +-
.../_modules/domainlab/tasks/task_dset.html | 12 +-
.../_modules/domainlab/tasks/task_folder.html | 12 +-
.../domainlab/tasks/task_folder_mk.html | 12 +-
.../domainlab/tasks/task_mini_vlcs.html | 12 +-
.../domainlab/tasks/task_mnist_color.html | 12 +-
.../domainlab/tasks/task_pathlist.html | 12 +-
.../_modules/domainlab/tasks/task_utils.html | 12 +-
.../_modules/domainlab/tasks/utils_task.html | 12 +-
.../domainlab/tasks/utils_task_dset.html | 12 +-
.../_modules/domainlab/tasks/zoo_tasks.html | 12 +-
.../domainlab/utils/flows_gen_img_model.html | 12 +-
.../utils/generate_benchmark_plots.html | 12 +-
.../_modules/domainlab/utils/get_git_tag.html | 12 +-
.../utils/hyperparameter_gridsearch.html | 12 +-
.../utils/hyperparameter_sampling.html | 12 +-
.../html/_modules/domainlab/utils/logger.html | 12 +-
.../domainlab/utils/override_interface.html | 12 +-
.../html/_modules/domainlab/utils/perf.html | 12 +-
.../domainlab/utils/perf_metrics.html | 12 +-
.../domainlab/utils/sanity_check.html | 12 +-
.../_modules/domainlab/utils/test_img.html | 12 +-
.../_modules/domainlab/utils/u_import.html | 12 +-
.../domainlab/utils/u_import_net_module.html | 12 +-
.../_modules/domainlab/utils/utils_class.html | 12 +-
.../domainlab/utils/utils_classif.html | 12 +-
.../_modules/domainlab/utils/utils_cuda.html | 12 +-
.../domainlab/utils/utils_img_sav.html | 12 +-
docs/build/html/_modules/index.html | 17 +-
docs/build/html/_static/basic.css | 54 +-
docs/build/html/_static/doctools.js | 450 +++++-----
.../html/_static/documentation_options.js | 6 +-
docs/build/html/_static/language_data.js | 100 ++-
docs/build/html/_static/pygments.css | 1 -
docs/build/html/_static/searchtools.js | 788 +++++++++---------
docs/build/html/docDIAL.html | 30 +-
docs/build/html/docFishr.html | 26 +-
docs/build/html/docHDUVA.html | 44 +-
docs/build/html/docIRM.html | 20 +-
docs/build/html/docJiGen.html | 24 +-
docs/build/html/docMA.html | 16 +-
docs/build/html/docMatchDG.html | 34 +-
docs/build/html/doc_MNIST_classification.html | 28 +-
docs/build/html/doc_benchmark.html | 42 +-
.../doc_benchmark_further_explanation.html | 20 +-
docs/build/html/doc_benchmark_pacs.html | 16 +-
docs/build/html/doc_benchmark_yaml.html | 32 +-
docs/build/html/doc_coral.html | 20 +-
docs/build/html/doc_custom_nn.html | 30 +-
docs/build/html/doc_dann.html | 18 +-
docs/build/html/doc_diva.html | 34 +-
docs/build/html/doc_extend_contribute.html | 18 +-
docs/build/html/doc_install.html | 24 +-
docs/build/html/doc_irl.html | 37 +-
docs/build/html/doc_mldg.html | 20 +-
docs/build/html/doc_model.html | 26 +-
docs/build/html/doc_output.html | 16 +-
docs/build/html/doc_tasks.html | 48 +-
docs/build/html/doc_trainer.html | 20 +-
docs/build/html/doc_usage_cmd.html | 40 +-
docs/build/html/domainlab.algos.html | 60 +-
docs/build/html/domainlab.algos.msels.html | 34 +-
.../build/html/domainlab.algos.observers.html | 34 +-
.../html/domainlab.algos.trainers.compos.html | 30 +-
docs/build/html/domainlab.algos.trainers.html | 98 +--
docs/build/html/domainlab.compos.html | 38 +-
docs/build/html/domainlab.compos.nn_zoo.html | 74 +-
docs/build/html/domainlab.compos.pcr.html | 28 +-
.../html/domainlab.compos.vae.compos.html | 88 +-
docs/build/html/domainlab.compos.vae.html | 76 +-
docs/build/html/domainlab.dsets.html | 56 +-
docs/build/html/domainlab.exp.html | 174 +---
docs/build/html/domainlab.exp_protocol.html | 71 +-
docs/build/html/domainlab.html | 75 +-
docs/build/html/domainlab.models.html | 98 +--
docs/build/html/domainlab.tasks.html | 94 +--
docs/build/html/domainlab.utils.html | 94 +--
docs/build/html/genindex.html | 141 +---
docs/build/html/index.html | 26 +-
docs/build/html/modules.html | 26 +-
docs/build/html/objects.inv | Bin 28469 -> 27836 bytes
docs/build/html/py-modindex.html | 37 +-
docs/build/html/readme_link.html | 40 +-
docs/build/html/requirements.html | 16 +-
docs/build/html/search.html | 12 +-
docs/build/html/searchindex.js | 2 +-
docs/build/html/tips.html | 14 +-
187 files changed, 1757 insertions(+), 5513 deletions(-)
delete mode 100644 docs/build/html/_modules/domainlab/exp/exp_main.html
delete mode 100644 docs/build/html/_modules/domainlab/exp/exp_utils.html
delete mode 100644 docs/build/html/_modules/domainlab/exp_protocol/run_experiment.html
delete mode 100644 docs/build/html/_modules/domainlab/mk_exp.html
diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo
index ae7a184ef..7ce915873 100644
--- a/docs/build/html/.buildinfo
+++ b/docs/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 6b1f707754558cc1c68f56bd9c949897
+config: fe17894255414d0052da08104b737402
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/build/html/_modules/domainlab.html b/docs/build/html/_modules/domainlab.html
index 33aada708..b1a9ed042 100644
--- a/docs/build/html/_modules/domainlab.html
+++ b/docs/build/html/_modules/domainlab.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -308,13 +307,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -386,7 +378,7 @@ Source code for domainlab Sphinx 5.0.2.
+
Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/a_algo_builder.html b/docs/build/html/_modules/domainlab/algos/a_algo_builder.html
index 77488d34a..ffbd152cc 100644
--- a/docs/build/html/_modules/domainlab/algos/a_algo_builder.html
+++ b/docs/build/html/_modules/domainlab/algos/a_algo_builder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -428,7 +420,7 @@
Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_api_model.html b/docs/build/html/_modules/domainlab/algos/builder_api_model.html
index cd1b90c84..068339bed 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_api_model.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_api_model.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -390,7 +382,7 @@ Source code for do
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_custom.html b/docs/build/html/_modules/domainlab/algos/builder_custom.html
index dfc01a364..814a2d518 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_custom.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_custom.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -481,7 +473,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_dann.html b/docs/build/html/_modules/domainlab/algos/builder_dann.html
index 397cd2282..036d0cdda 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_dann.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_dann.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -454,7 +446,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_diva.html b/docs/build/html/_modules/domainlab/algos/builder_diva.html
index 1c8dcd68c..7b6a204e5 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_diva.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_diva.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -424,7 +416,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_erm.html b/docs/build/html/_modules/domainlab/algos/builder_erm.html
index cd03f5314..723ccc306 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_erm.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_erm.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -415,7 +407,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_hduva.html b/docs/build/html/_modules/domainlab/algos/builder_hduva.html
index 4b61b668c..0b6d76e5a 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_hduva.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_hduva.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -414,7 +406,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/builder_jigen1.html b/docs/build/html/_modules/domainlab/algos/builder_jigen1.html
index 2b065b192..39b43c590 100644
--- a/docs/build/html/_modules/domainlab/algos/builder_jigen1.html
+++ b/docs/build/html/_modules/domainlab/algos/builder_jigen1.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -440,7 +432,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/msels/a_model_sel.html b/docs/build/html/_modules/domainlab/algos/msels/a_model_sel.html
index b208d1dcb..7e4ec7155 100644
--- a/docs/build/html/_modules/domainlab/algos/msels/a_model_sel.html
+++ b/docs/build/html/_modules/domainlab/algos/msels/a_model_sel.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -505,7 +497,7 @@ Source code for do
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/msels/c_msel_oracle.html b/docs/build/html/_modules/domainlab/algos/msels/c_msel_oracle.html
index eb94ee946..f91f16dac 100644
--- a/docs/build/html/_modules/domainlab/algos/msels/c_msel_oracle.html
+++ b/docs/build/html/_modules/domainlab/algos/msels/c_msel_oracle.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -432,7 +424,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/msels/c_msel_tr_loss.html b/docs/build/html/_modules/domainlab/algos/msels/c_msel_tr_loss.html
index 6599b9cf0..d5fa1996b 100644
--- a/docs/build/html/_modules/domainlab/algos/msels/c_msel_tr_loss.html
+++ b/docs/build/html/_modules/domainlab/algos/msels/c_msel_tr_loss.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -421,7 +413,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/msels/c_msel_val.html b/docs/build/html/_modules/domainlab/algos/msels/c_msel_val.html
index 8c92037ce..81b479922 100644
--- a/docs/build/html/_modules/domainlab/algos/msels/c_msel_val.html
+++ b/docs/build/html/_modules/domainlab/algos/msels/c_msel_val.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -441,7 +433,7 @@ Source code for dom
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/observers/a_observer.html b/docs/build/html/_modules/domainlab/algos/observers/a_observer.html
index d50b8b345..1ec2267c8 100644
--- a/docs/build/html/_modules/domainlab/algos/observers/a_observer.html
+++ b/docs/build/html/_modules/domainlab/algos/observers/a_observer.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -426,7 +418,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/observers/b_obvisitor.html b/docs/build/html/_modules/domainlab/algos/observers/b_obvisitor.html
index b08de9f19..f00ceb504 100644
--- a/docs/build/html/_modules/domainlab/algos/observers/b_obvisitor.html
+++ b/docs/build/html/_modules/domainlab/algos/observers/b_obvisitor.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -524,7 +516,7 @@ Source code fo
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_cleanup.html b/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_cleanup.html
index e20e84305..5e8c20c15 100644
--- a/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_cleanup.html
+++ b/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_cleanup.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -392,7 +384,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_gen.html b/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_gen.html
index 7a736be81..8c86e6398 100644
--- a/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_gen.html
+++ b/docs/build/html/_modules/domainlab/algos/observers/c_obvisitor_gen.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -410,7 +402,7 @@ Source cod
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/a_trainer.html b/docs/build/html/_modules/domainlab/algos/trainers/a_trainer.html
index 8e1ebc764..ef3958703 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/a_trainer.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/a_trainer.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -671,7 +663,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/args_dial.html b/docs/build/html/_modules/domainlab/algos/trainers/args_dial.html
index c11a3e045..ffd0f78c2 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/args_dial.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/args_dial.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -398,7 +390,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_args.html b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_args.html
index 136056849..b386f74a5 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_args.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_args.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -389,7 +381,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_match.html b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_match.html
index ecdb23f6b..ee71ef5bc 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_match.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_match.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -765,7 +757,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_utils.html b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_utils.html
index e9c9fc729..24bf5b185 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_utils.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/compos/matchdg_utils.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -516,7 +508,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/hyper_scheduler.html b/docs/build/html/_modules/domainlab/algos/trainers/hyper_scheduler.html
index 08081bc3e..4736003fa 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/hyper_scheduler.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/hyper_scheduler.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -427,7 +419,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/mmd_base.html b/docs/build/html/_modules/domainlab/algos/trainers/mmd_base.html
index 2156f28ef..7ead11e39 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/mmd_base.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/mmd_base.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -412,7 +404,7 @@ Source code for do
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_basic.html b/docs/build/html/_modules/domainlab/algos/trainers/train_basic.html
index 1d417dceb..1b492cc5f 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_basic.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_basic.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -479,7 +471,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_causIRL.html b/docs/build/html/_modules/domainlab/algos/trainers/train_causIRL.html
index 1f484ff7f..3f72504cd 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_causIRL.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_causIRL.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -441,7 +433,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_coral.html b/docs/build/html/_modules/domainlab/algos/trainers/train_coral.html
index 773bba964..3e8ffb96a 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_coral.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_coral.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -413,7 +405,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_dial.html b/docs/build/html/_modules/domainlab/algos/trainers/train_dial.html
index 3fc64d665..9982e47ba 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_dial.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_dial.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -417,7 +409,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_ema.html b/docs/build/html/_modules/domainlab/algos/trainers/train_ema.html
index dc5ef16f2..2bfbe0487 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_ema.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_ema.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -430,7 +422,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_fishr.html b/docs/build/html/_modules/domainlab/algos/trainers/train_fishr.html
index dffea521f..22e34e3ef 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_fishr.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_fishr.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -536,7 +528,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_hyper_scheduler.html b/docs/build/html/_modules/domainlab/algos/trainers/train_hyper_scheduler.html
index d0b42c797..f2922aea6 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_hyper_scheduler.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_hyper_scheduler.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -429,7 +421,7 @@ Sourc
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_irm.html b/docs/build/html/_modules/domainlab/algos/trainers/train_irm.html
index 11dacb741..395cd1509 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_irm.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_irm.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -435,7 +427,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_matchdg.html b/docs/build/html/_modules/domainlab/algos/trainers/train_matchdg.html
index 06ffaf9c2..19a94feb3 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_matchdg.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_matchdg.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -736,7 +728,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/train_mldg.html b/docs/build/html/_modules/domainlab/algos/trainers/train_mldg.html
index c38403aad..66464de6c 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/train_mldg.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/train_mldg.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -486,7 +478,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/trainers/zoo_trainer.html b/docs/build/html/_modules/domainlab/algos/trainers/zoo_trainer.html
index 704cb75fd..e40af6c02 100644
--- a/docs/build/html/_modules/domainlab/algos/trainers/zoo_trainer.html
+++ b/docs/build/html/_modules/domainlab/algos/trainers/zoo_trainer.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -433,7 +425,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/algos/zoo_algos.html b/docs/build/html/_modules/domainlab/algos/zoo_algos.html
index 08ac2a5d3..0f66b7428 100644
--- a/docs/build/html/_modules/domainlab/algos/zoo_algos.html
+++ b/docs/build/html/_modules/domainlab/algos/zoo_algos.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -420,7 +412,7 @@ Source code for domainlab.
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/arg_parser.html b/docs/build/html/_modules/domainlab/arg_parser.html
index 6bb029e73..842b82700 100644
--- a/docs/build/html/_modules/domainlab/arg_parser.html
+++ b/docs/build/html/_modules/domainlab/arg_parser.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -777,7 +769,7 @@ Source code for domainlab.arg_p
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/a_nn_builder.html b/docs/build/html/_modules/domainlab/compos/a_nn_builder.html
index e51840ffc..299694ad2 100644
--- a/docs/build/html/_modules/domainlab/compos/a_nn_builder.html
+++ b/docs/build/html/_modules/domainlab/compos/a_nn_builder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -416,7 +408,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/builder_nn_alex.html b/docs/build/html/_modules/domainlab/compos/builder_nn_alex.html
index 8aa2eda69..82d4f487c 100644
--- a/docs/build/html/_modules/domainlab/compos/builder_nn_alex.html
+++ b/docs/build/html/_modules/domainlab/compos/builder_nn_alex.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -400,7 +392,7 @@ Source code for dom
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/builder_nn_conv_bn_relu_2.html b/docs/build/html/_modules/domainlab/compos/builder_nn_conv_bn_relu_2.html
index 4afe9cc36..8cb7ffe8b 100644
--- a/docs/build/html/_modules/domainlab/compos/builder_nn_conv_bn_relu_2.html
+++ b/docs/build/html/_modules/domainlab/compos/builder_nn_conv_bn_relu_2.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -403,7 +395,7 @@ Source co
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/builder_nn_external_from_file.html b/docs/build/html/_modules/domainlab/compos/builder_nn_external_from_file.html
index 3acdc690b..ca8fc8d57 100644
--- a/docs/build/html/_modules/domainlab/compos/builder_nn_external_from_file.html
+++ b/docs/build/html/_modules/domainlab/compos/builder_nn_external_from_file.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -406,7 +398,7 @@ Sourc
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_adversarial.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_adversarial.html
index 901793af9..066352d07 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_adversarial.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_adversarial.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -401,7 +393,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_classif.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_classif.html
index a1402492b..c788cd208 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_classif.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -391,7 +383,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_conv_conv_bn_pool_2.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_conv_conv_bn_pool_2.html
index 7c85c61ed..dd5641b0f 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_conv_conv_bn_pool_2.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_conv_conv_bn_pool_2.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -452,7 +444,7 @@ Sour
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_gated.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_gated.html
index d99b70cea..b5542778d 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/net_gated.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/net_gated.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -454,7 +446,7 @@ Source code for do
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn.html
index aa8d1aa93..0873d5bed 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -412,7 +404,7 @@ Source code for domainlab
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_alex.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_alex.html
index f705bf18b..396381278 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_alex.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_alex.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -437,7 +429,7 @@ Source code for doma
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_torchvision.html b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_torchvision.html
index 441313003..1bafed913 100644
--- a/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_torchvision.html
+++ b/docs/build/html/_modules/domainlab/compos/nn_zoo/nn_torchvision.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -397,7 +389,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/pcr/p_chain_handler.html b/docs/build/html/_modules/domainlab/compos/pcr/p_chain_handler.html
index 9c9bc9d81..4db38fdb0 100644
--- a/docs/build/html/_modules/domainlab/compos/pcr/p_chain_handler.html
+++ b/docs/build/html/_modules/domainlab/compos/pcr/p_chain_handler.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -497,7 +489,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/pcr/request.html b/docs/build/html/_modules/domainlab/compos/pcr/request.html
index a0bb2bddf..952fb7f6c 100644
--- a/docs/build/html/_modules/domainlab/compos/pcr/request.html
+++ b/docs/build/html/_modules/domainlab/compos/pcr/request.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -406,7 +398,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/utils_conv_get_flat_dim.html b/docs/build/html/_modules/domainlab/compos/utils_conv_get_flat_dim.html
index 4369490fb..30c3c4d88 100644
--- a/docs/build/html/_modules/domainlab/compos/utils_conv_get_flat_dim.html
+++ b/docs/build/html/_modules/domainlab/compos/utils_conv_get_flat_dim.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -384,7 +376,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/a_model_builder.html b/docs/build/html/_modules/domainlab/compos/vae/a_model_builder.html
index dc4ce4e5c..eb516cf4c 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/a_model_builder.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/a_model_builder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -388,7 +380,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/a_vae_builder.html b/docs/build/html/_modules/domainlab/compos/vae/a_vae_builder.html
index 2755cb044..2e6596f3b 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/a_vae_builder.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/a_vae_builder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -409,7 +401,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/c_vae_adaptor_model_recon.html b/docs/build/html/_modules/domainlab/compos/vae/c_vae_adaptor_model_recon.html
index 172a81f4b..5f213d327 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/c_vae_adaptor_model_recon.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/c_vae_adaptor_model_recon.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -415,7 +407,7 @@ Sourc
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/c_vae_builder_classif.html b/docs/build/html/_modules/domainlab/compos/vae/c_vae_builder_classif.html
index 85384d4b3..d38299dfc 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/c_vae_builder_classif.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/c_vae_builder_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -406,7 +398,7 @@ Source co
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/c_vae_recon.html b/docs/build/html/_modules/domainlab/compos/vae/c_vae_recon.html
index 91bf67965..a46d1ae9d 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/c_vae_recon.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/c_vae_recon.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -475,7 +467,7 @@ Source code for dom
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv.html b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv.html
index dd32567e1..6a771c4fe 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -438,7 +430,7 @@ Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv_gated_conv.html b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv_gated_conv.html
index 7171d0dc1..77e37dcdf 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv_gated_conv.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_concat_vec_reshape_conv_gated_conv.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -429,7 +421,7 @@ Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_cond_prior.html b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_cond_prior.html
index 829afb17c..27d4051e5 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_cond_prior.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_cond_prior.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -403,7 +395,7 @@ Sourc
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_losses.html b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_losses.html
index 1049202b6..aa0cc6474 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_losses.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/decoder_losses.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -410,7 +402,7 @@ Source co
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder.html
index 0c5c1692d..cae92810f 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -458,7 +450,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_dirichlet.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_dirichlet.html
index 70eb148a5..2edb7e5ad 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_dirichlet.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_dirichlet.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -391,7 +383,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic.html
index 35a822c63..0598161d4 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -422,7 +414,7 @@ Sou
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img2topic.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img2topic.html
index dd7965c67..4b8a40817 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img2topic.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img2topic.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -421,7 +413,7 @@ Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img_topic2zd.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img_topic2zd.html
index 7856cd8ff..6b53cad46 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img_topic2zd.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_domain_topic_img_topic2zd.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -422,7 +414,7 @@ Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xyd_parallel.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xyd_parallel.html
index 01ddb0f9a..76d4ba160 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xyd_parallel.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xyd_parallel.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -529,7 +521,7 @@ Sou
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xydt_elevator.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xydt_elevator.html
index 49f6491d4..201d071ac 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xydt_elevator.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_xydt_elevator.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -453,7 +445,7 @@ So
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_zy.html b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_zy.html
index 99e0772a8..8767fd181 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_zy.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/compos/encoder_zy.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -420,7 +412,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/utils_request_chain_builder.html b/docs/build/html/_modules/domainlab/compos/vae/utils_request_chain_builder.html
index a3c177d4f..81c7835c3 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/utils_request_chain_builder.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/utils_request_chain_builder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -401,7 +393,7 @@ Sou
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif.html b/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif.html
index 4b12f15fe..bd5e6132c 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -509,7 +501,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif_topic.html b/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif_topic.html
index 7de5e09eb..20a096070 100644
--- a/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif_topic.html
+++ b/docs/build/html/_modules/domainlab/compos/vae/zoo_vae_builders_classif_topic.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -418,7 +410,7 @@
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/compos/zoo_nn.html b/docs/build/html/_modules/domainlab/compos/zoo_nn.html
index 64807da3c..40f1392e1 100644
--- a/docs/build/html/_modules/domainlab/compos/zoo_nn.html
+++ b/docs/build/html/_modules/domainlab/compos/zoo_nn.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -407,7 +399,7 @@ Source code for domainlab.co
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/a_dset_mnist_color_rgb_solo.html b/docs/build/html/_modules/domainlab/dsets/a_dset_mnist_color_rgb_solo.html
index 2312938c7..28ef16ad2 100644
--- a/docs/build/html/_modules/domainlab/dsets/a_dset_mnist_color_rgb_solo.html
+++ b/docs/build/html/_modules/domainlab/dsets/a_dset_mnist_color_rgb_solo.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -531,7 +523,7 @@ Source c
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/dset_img_path_list.html b/docs/build/html/_modules/domainlab/dsets/dset_img_path_list.html
index 4a8c03122..78c699278 100644
--- a/docs/build/html/_modules/domainlab/dsets/dset_img_path_list.html
+++ b/docs/build/html/_modules/domainlab/dsets/dset_img_path_list.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -401,7 +393,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/dset_mnist_color_solo_default.html b/docs/build/html/_modules/domainlab/dsets/dset_mnist_color_solo_default.html
index a60fa0614..6e127f3ee 100644
--- a/docs/build/html/_modules/domainlab/dsets/dset_mnist_color_solo_default.html
+++ b/docs/build/html/_modules/domainlab/dsets/dset_mnist_color_solo_default.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -389,7 +381,7 @@ Source
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/dset_poly_domains_mnist_color_default.html b/docs/build/html/_modules/domainlab/dsets/dset_poly_domains_mnist_color_default.html
index feaa9d26a..22f05f523 100644
--- a/docs/build/html/_modules/domainlab/dsets/dset_poly_domains_mnist_color_default.html
+++ b/docs/build/html/_modules/domainlab/dsets/dset_poly_domains_mnist_color_default.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -409,7 +401,7 @@ Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/dset_subfolder.html b/docs/build/html/_modules/domainlab/dsets/dset_subfolder.html
index e11b14d10..511cbf200 100644
--- a/docs/build/html/_modules/domainlab/dsets/dset_subfolder.html
+++ b/docs/build/html/_modules/domainlab/dsets/dset_subfolder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -526,7 +518,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/utils_data.html b/docs/build/html/_modules/domainlab/dsets/utils_data.html
index 09c9bc429..e5efda3d1 100644
--- a/docs/build/html/_modules/domainlab/dsets/utils_data.html
+++ b/docs/build/html/_modules/domainlab/dsets/utils_data.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -461,7 +453,7 @@ Source code for domainlab
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/dsets/utils_wrapdset_patches.html b/docs/build/html/_modules/domainlab/dsets/utils_wrapdset_patches.html
index 56fe5bbcc..e5981a62d 100644
--- a/docs/build/html/_modules/domainlab/dsets/utils_wrapdset_patches.html
+++ b/docs/build/html/_modules/domainlab/dsets/utils_wrapdset_patches.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -525,7 +517,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/exp/exp_cuda_seed.html b/docs/build/html/_modules/domainlab/exp/exp_cuda_seed.html
index 659af1a09..f3d5264c3 100644
--- a/docs/build/html/_modules/domainlab/exp/exp_cuda_seed.html
+++ b/docs/build/html/_modules/domainlab/exp/exp_cuda_seed.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -383,7 +375,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/exp/exp_main.html b/docs/build/html/_modules/domainlab/exp/exp_main.html
deleted file mode 100644
index e0f6d77da..000000000
--- a/docs/build/html/_modules/domainlab/exp/exp_main.html
+++ /dev/null
@@ -1,513 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- domainlab.exp.exp_main — domainlab documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Skip to content
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source code for domainlab.exp.exp_main
- """
-experiment
-"""
-import datetime
-import os
-import warnings
-
-from domainlab.algos.zoo_algos import AlgoBuilderChainNodeGetter
-from domainlab.exp.exp_utils import AggWriter
-from domainlab.tasks.zoo_tasks import TaskChainNodeGetter
-from domainlab.utils.logger import Logger
-from domainlab.utils.sanity_check import SanityCheck
-os.environ["CUDA_LAUNCH_BLOCKING"] = "1" # debug
-
-
-[docs] class Exp:
- """
- Exp is combination of Task, Algorithm, and Configuration (including random seed)
- """
-
- def __init__(self, args, task=None, model=None, observer=None, visitor=AggWriter):
- """
- :param args:
- :param task: default None
- :param model: default None
- """
- self.task = task
- self.curr_dir = os.getcwd()
- if task is None:
- self.task = TaskChainNodeGetter(args)()
-
- self.args = args
- algo_builder = AlgoBuilderChainNodeGetter(
- self.args.model, self.args.apath
- )() # request
- # the critical logic below is to avoid circular dependence between task initialization
- # and trainer initialization:
-
- self.trainer, self.model, observer_default, device = algo_builder.init_business(
- self
- )
- # sanity check has to be done after init_business
- # jigen algorithm builder has method dset_decoration_args_algo, which could AOP
- # into the task intilization process
- if args.san_check:
- sancheck = SanityCheck(args, self.task)
- sancheck.dataset_sanity_check()
-
- if model is not None:
- self.model = model
- self.epochs = self.args.epos
- self.epoch_counter = 1
- self.val_threshold = args.val_threshold
- if observer is None:
- observer = observer_default
- if not self.trainer.flag_initialized:
- self.trainer.init_business(self.model, self.task, observer, device, args)
- self.visitor = visitor(self) # visitor depends on task initialization first
- # visitor must be initialized last after trainer is initialized
- self.experiment_duration = None
- self.model.set_saver(self.visitor)
-
-
[docs] def execute(self, num_epochs=None):
- """
- train model
- check performance by loading persisted model
- """
- self.model.save() # cause CI infinite loop when put in initializer?
- if num_epochs is None:
- num_epochs = self.epochs + 1
- t_0 = datetime.datetime.now()
- logger = Logger.get_logger()
- logger.info(f"\n Experiment start at: {str(t_0)}")
- t_c = t_0
- self.trainer.before_tr()
- for epoch in range(1, num_epochs):
- t_before_epoch = t_c
- flag_stop = self.trainer.tr_epoch(epoch)
- t_c = datetime.datetime.now()
- logger.info(
- f"after epoch: {epoch},"
- f"now: {str(t_c)},"
- f"epoch time: {t_c - t_before_epoch},"
- f"used: {t_c - t_0},"
- f"model: {self.visitor.model_name}"
- )
- logger.info(f"working direcotry: {self.curr_dir}")
- # current time, time since experiment start, epoch time
- if flag_stop:
- self.epoch_counter = epoch
- logger.info("early stop trigger")
- break
- if epoch == self.epochs:
- self.epoch_counter = self.epochs
- else:
- self.epoch_counter += 1
- logger.info(
- f"Experiment finished at epoch: {self.epoch_counter} "
- f"with time: {t_c - t_0} at {t_c}"
- )
- self.experiment_duration = t_c - t_0
- self.trainer.post_tr()
-
-
[docs] def clean_up(self):
- """
- to be called by a decorator
- """
- try:
- # oracle means use out-of-domain test accuracy to select the model
- self.visitor.remove("oracle") # pylint: disable=E1101
- except FileNotFoundError:
- pass
-
- try:
- # the last epoch:
- # have a model to evaluate in case the training stops in between
- self.visitor.remove("epoch") # pylint: disable=E1101
- except FileNotFoundError:
- logger = Logger.get_logger()
- logger.warn("failed to remove model_epoch: file not found")
- warnings.warn("failed to remove model_epoch: file not found")
-
- try:
- # without suffix: the selected model
- self.visitor.remove() # pylint: disable=E1101
- except FileNotFoundError:
- logger = Logger.get_logger()
- logger.warn("failed to remove model")
- warnings.warn("failed to remove model")
-
- try:
- # for matchdg
- self.visitor.remove("ctr") # pylint: disable=E1101
- except FileNotFoundError:
- pass
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/build/html/_modules/domainlab/exp/exp_utils.html b/docs/build/html/_modules/domainlab/exp/exp_utils.html
deleted file mode 100644
index 1a7180a60..000000000
--- a/docs/build/html/_modules/domainlab/exp/exp_utils.html
+++ /dev/null
@@ -1,668 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- domainlab.exp.exp_utils — domainlab documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Skip to content
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source code for domainlab.exp.exp_utils
- """
-This module contains 3 classes inheriting:
- ExpProtocolAggWriter(AggWriter(ExpModelPersistVisitor))
-"""
-import copy
-import datetime
-import os
-from pathlib import Path
-
-import numpy as np
-import torch
-from sklearn.metrics import ConfusionMatrixDisplay
-
-from domainlab.utils.get_git_tag import get_git_tag
-from domainlab.utils.logger import Logger
-
-
-[docs] class ExpModelPersistVisitor:
- """
- This class couples with Task class attributes
- """
-
- model_dir = "saved_models"
- model_suffix = ".model"
-
- def __init__(self, host):
- """
- 1. create new attributes like model names
- 2. all dependencies in contructor
- 3. do not change the sequence of the lines!
- since later lines depends on earlier definitions
- """
- self.host = host
- self.out = host.args.out
- self.model_dir = os.path.join(self.out, ExpModelPersistVisitor.model_dir)
- self.git_tag = get_git_tag()
- self.task_name = self.host.task.get_na(self.host.args.tr_d, self.host.args.te_d)
- self.algo_name = self.host.args.model
- self.seed = self.host.args.seed
- self.model_name = self.mk_model_na(self.git_tag)
- self.model_path = os.path.join(
- self.model_dir, self.model_name + ExpModelPersistVisitor.model_suffix
- )
-
- Path(os.path.dirname(self.model_path)).mkdir(parents=True, exist_ok=True)
- self.model = copy.deepcopy(self.host.trainer.model)
- # although deepcopy in contructor is expensive, but
- # execute copy.deepcopy(self.host.trainer.model) after training will cause thread lock
- # if self.host.trainer has tensorboard writer, see
- # https://github.com/marrlab/DomainLab/issues/673
-
-
[docs] def mk_model_na(self, tag=None, dd_cut=19):
- """
- :param tag: for git commit hash for example
- """
- if tag is None:
- tag = "tag"
- suffix_t = str(datetime.datetime.now())[:dd_cut].replace(" ", "_")
- suffix_t = suffix_t.replace("-", "md_")
- suffix_t = suffix_t.replace(":", "_")
- list4mname = [
- self.task_name,
- self.algo_name,
- tag,
- suffix_t,
- "seed",
- str(self.seed),
- ]
- # the sequence of components (e.g. seed in the last place)
- # in model name is not crutial
- model_name = "_".join(list4mname)
- if self.host.args.debug:
- model_name = "debug_" + model_name
- slurm = os.environ.get("SLURM_JOB_ID")
- if slurm:
- model_name = model_name + "_" + slurm
- logger = Logger.get_logger()
- logger.info(f"model name: {model_name}")
- return model_name
-
-
[docs] def save(self, model, suffix=None):
- """
- :param model:
- """
- file_na = self.model_path
- if suffix is not None:
- file_na = "_".join([file_na, suffix])
- torch.save(copy.deepcopy(model.state_dict()), file_na)
- # checkpoint = {'model': Net(), '
- # state_dict': model.state_dict(),
- # 'optimizer' :optimizer.state_dict()}
- # torch.save(checkpoint, 'Checkpoint.pth')
-
-
[docs] def remove(self, suffix=None):
- """
- remove model after use
- """
- file_na = self.model_path
- if suffix is not None:
- file_na = "_".join([file_na, suffix])
- os.remove(file_na)
-
-
[docs] def load(self, suffix=None):
- """
- load pre-defined model name from disk
- the save function is the same class so to ensure load will ways work
- """
- path = self.model_path
- if suffix is not None:
- path = "_".join([self.model_path, suffix])
- # due to tensorboard writer in trainer.scheduler,
- # copy.deepcopy(self.host.trainer.model) will cause thread lock
- # see https://github.com/marrlab/DomainLab/issues/673
- self.model.load_state_dict(torch.load(path, map_location="cpu"))
- # without separate self.model and self.model_suffixed,
- # it will cause accuracy inconsistent problems since the content of self.model
- # can be overwritten when the current function is called another time and self.model
- # is not deepcopied
- # However, deepcopy is also problematic when it is executed too many times
- return copy.deepcopy(self.model)
- # instead of deepcopy, one could also have multiple copies of model in constructor, but this
- # does not adhere the lazy principle.
-
-
[docs] def clean_up(self):
- self.host.clean_up()
-
-
-[docs] class AggWriter(ExpModelPersistVisitor):
- """
- 1. aggregate results to text file.
- 2. all dependencies are in the constructor
- """
-
- def __init__(self, host):
- super().__init__(host)
- self.agg_tag = self.host.args.aggtag
- self.exp_tag = self.host.args.exptag
- self.debug = self.host.args.debug
- self.has_first_line = False
- self.list_cols = None
-
-
[docs] def first_line(self, dict_cols):
- """
- generate header of the results aggregation file
- """
- self.list_cols = list(dict_cols.keys())
- # @FIXME: will be list be the same order each time?
- str_line = ", ".join(self.list_cols)
- if not os.path.isfile(self.get_fpath()):
- self.to_file(str_line)
- self.has_first_line = True
-
- def __call__(self, dict_metric):
- line, confmat, confmat_filename = self._gen_line(dict_metric)
- self.to_file(line)
- if not self.host.args.no_dump:
- self.confmat_to_file(confmat, confmat_filename)
-
-
[docs] def get_cols(self):
- """
- call the same function to always get the same columns configuration
- """
- epos_name = "epos"
- dict_cols = {
- "algo": self.algo_name,
- epos_name: None,
- "seed": self.seed,
- "aggtag": self.agg_tag,
- # algorithm configuration for instance
- "mname": "mname_" + self.model_name,
- "commit": "commit_" + self.git_tag,
- }
- return dict_cols, epos_name
-
- def _gen_line(self, dict_metric):
- dict_cols, epos_name = self.get_cols()
- dict_cols.update(dict_metric)
- confmat = dict_cols.pop("confmat")
- confmat_filename = dict_cols.get("mname", None) # return None if not found
- # @FIXME: strong dependency on host attribute name
- dict_cols.update({epos_name: self.host.epoch_counter})
- if self.host.experiment_duration is not None:
- dict_cols.update({"experiment_duration": self.host.experiment_duration})
- else:
- print("Does not have attribute")
- print(self.host)
- if not self.has_first_line:
- self.first_line(dict_cols)
- list_str = [str(dict_cols[key]) for key in self.list_cols]
- str_line = ", ".join(list_str)
- return str_line, confmat, confmat_filename
-
-
[docs] def get_fpath(self, dirname="aggrsts"):
- """
- for writing and reading, the same function is called to ensure name
- change in the future will not break the software
- """
- list4fname = [
- self.task_name,
- self.exp_tag,
- ]
- fname = "_".join(list4fname) + ".csv"
- if self.debug:
- fname = "_".join(["debug_agg", fname])
- file_path = os.path.join(self.out, dirname, fname)
- return file_path
-
-
[docs] def to_file(self, str_line):
- """
- :param str_line:
- """
- file_path = self.get_fpath()
- Path(os.path.dirname(file_path)).mkdir(parents=True, exist_ok=True)
- logger = Logger.get_logger()
- logger.info(f"results aggregation path: {file_path}")
- with open(file_path, "a", encoding="utf8") as f_h:
- print(str_line, file=f_h)
-
-
[docs] def confmat_to_file(self, confmat, confmat_filename):
- """Save confusion matrix as a figure
-
- Args:
- confmat: confusion matrix.
- """
- disp = ConfusionMatrixDisplay(confmat)
- disp = disp.plot(cmap="gray")
- file_path = self.get_fpath()
- # @FIXME: although removesuffix is safe when suffix does not exist,
- # we would like to have ".csv" live in some configuraiton file in the future.
- file_path = file_path.removesuffix(".csv")
- # if prefix does not exist, string remain unchanged.
- # @FIXME: still we want to have mname_ as a variable defined in some
- # configuration file in the future.
- confmat_filename = confmat_filename.removeprefix("mname_")
- file_path = os.path.join(
- os.path.dirname(file_path), f"{confmat_filename}_conf_mat.png"
- )
- logger = Logger.get_logger()
- logger.info(f"confusion matrix saved in file: {file_path}")
- disp.figure_.savefig(file_path)
-
-
-[docs] class ExpProtocolAggWriter(AggWriter):
- """
- AggWriter tailored to experimental protocol
- Output contains additionally index, exp task, te_d and params.
- """
-
-
[docs] def get_cols(self):
- """columns"""
- epos_name = "epos"
- dict_cols = {
- "param_index": self.host.args.param_index,
- "method": self.host.args.benchmark_task_name,
- "mname": "mname_" + self.model_name,
- "commit": "commit_" + self.git_tag,
- "algo": self.algo_name,
- epos_name: None,
- "te_d": self.host.args.te_d,
- "seed": self.seed,
- "params": f'"{self.host.args.params}"',
- }
- return dict_cols, epos_name
-
-
[docs] def get_fpath(self, dirname=None):
- """filepath"""
- if dirname is None:
- return self.host.args.result_file
- return super().get_fpath(dirname)
-
-
[docs] def confmat_to_file(self, confmat, confmat_filename):
- """Save confusion matrix as a figure
-
- Args:
- confmat: confusion matrix.
- """
- path4file = self.get_fpath()
- index = os.path.basename(path4file)
- path4file = os.path.dirname(os.path.dirname(path4file))
- # if prefix does not exist, string remain unchanged.
- confmat_filename = confmat_filename.removeprefix("mname_")
- path4file = os.path.join(path4file, "confusion_matrix")
- os.makedirs(path4file, exist_ok=True)
- file_path = os.path.join(path4file, f"{index}.txt")
- with open(file_path, "a", encoding="utf8") as f_h:
- print(confmat_filename, file=f_h)
- for line in np.matrix(confmat):
- np.savetxt(f_h, line, fmt="%.2f")
- logger = Logger.get_logger()
- logger.info(f"confusion matrix saved in file: {file_path}")
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/build/html/_modules/domainlab/exp_protocol/aggregate_results.html b/docs/build/html/_modules/domainlab/exp_protocol/aggregate_results.html
index c65ddaa51..cf94fabca 100644
--- a/docs/build/html/_modules/domainlab/exp_protocol/aggregate_results.html
+++ b/docs/build/html/_modules/domainlab/exp_protocol/aggregate_results.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -414,7 +406,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/exp_protocol/run_experiment.html b/docs/build/html/_modules/domainlab/exp_protocol/run_experiment.html
deleted file mode 100644
index 039e9d4ed..000000000
--- a/docs/build/html/_modules/domainlab/exp_protocol/run_experiment.html
+++ /dev/null
@@ -1,565 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- domainlab.exp_protocol.run_experiment — domainlab documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Skip to content
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source code for domainlab.exp_protocol.run_experiment
- """
-Runs one task for a single hyperparameter sample for each leave-out-domain
-and each random seed.
-"""
-import ast
-import copy
-import gc
-
-import numpy as np
-import pandas as pd
-import torch
-
-from domainlab.arg_parser import apply_dict_to_args, mk_parser_main
-from domainlab.exp.exp_cuda_seed import set_seed
-from domainlab.exp.exp_main import Exp
-from domainlab.exp.exp_utils import ExpProtocolAggWriter
-from domainlab.utils.hyperparameter_sampling import G_METHOD_NA
-from domainlab.utils.logger import Logger
-
-
-[docs] def load_parameters(file: str, index: int) -> tuple:
- """
- Loads a single parameter sample
- @param file: csv file
- @param index: index of hyper-parameter
- """
- param_df = pd.read_csv(file, index_col=0)
- row = param_df.loc[index]
- params = ast.literal_eval(row.params)
- # row.task has nothing to do with DomainLab task, it is
- # benchmark task which correspond to one algorithm
- return row[G_METHOD_NA], params
-
-
-[docs] def convert_dict2float(dict_in):
- """
- convert scientific notation from 1e5 to 10000
- """
- dict_out = copy.deepcopy(dict_in)
- for key, val in dict_out.items():
- if isinstance(val, str):
- try:
- val_float = float(val)
- dict_out[key] = val_float
- except:
- pass
- return dict_out
-
-
-[docs] def run_experiment(
- config: dict,
- param_file: str,
- param_index: int,
- out_file: str,
- start_seed=None,
- misc=None,
- num_gpus=1,
-):
- """
- Runs the experiment several times:
-
- for test_domain in test_domains:
- for seed from startseed to endseed:
- evaluate the algorithm with test_domain, initialization with seed
-
- :param config: dictionary from the benchmark yaml
- :param param_file: path to the csv with the parameter samples
- :param param_index: parameter index that should be covered by this task,
- currently this correspond to the line number in the csv file, or row number
- in the resulting pandas dataframe
- :param out_file: path to the output csv
- :param start_seed: random seed to start for stochastic variations of pytorch
- :param misc: optional dictionary of additional parameters, if any.
-
- # FIXME: we might want to run the experiment using commandline arguments
- """
-
- if misc is None:
- misc = {}
- str_algo_as_task, hyperparameters = load_parameters(param_file, param_index)
- logger = Logger.get_logger()
- logger.debug(
- "\n*******************************************************************"
- )
- logger.debug(
- f"{str_algo_as_task}, param_index={param_index}, params={hyperparameters}"
- )
- logger.debug(
- "*******************************************************************\n"
- )
- misc["result_file"] = out_file
- misc["params"] = hyperparameters
- misc["benchmark_task_name"] = str_algo_as_task
- misc["param_index"] = param_index
- misc["keep_model"] = False
-
- parser = mk_parser_main()
- args = parser.parse_args(args=[])
- args_algo_specific = config[str_algo_as_task].copy()
- if "hyperparameters" in args_algo_specific:
- del args_algo_specific["hyperparameters"]
- args_domainlab_common_raw = config.get("domainlab_args", {})
- args_domainlab_common = convert_dict2float(args_domainlab_common_raw)
- # check if some of the hyperparameters are already specified
- # in args_domainlab_common or args_algo_specific
- if (
- np.intersect1d(
- list(args_algo_specific.keys()), list(hyperparameters.keys())
- ).shape[0]
- > 0
- ):
- logger.error(
- f"the hyperparameter "
- f"{np.intersect1d(list(args_algo_specific.keys()), list(hyperparameters.keys()))}"
- f" has already been fixed to a value in the algorithm section."
- )
- raise RuntimeError(
- f"the hyperparameter "
- f"{np.intersect1d(list(args_algo_specific.keys()), list(hyperparameters.keys()))}"
- f" has already been fixed to a value in the algorithm section."
- )
- if (
- np.intersect1d(
- list(args_domainlab_common.keys()), list(hyperparameters.keys())
- ).shape[0]
- > 0
- ):
- logger.error(
- f"the hyperparameter "
- f"{np.intersect1d(list(args_algo_specific.keys()), list(hyperparameters.keys()))}"
- f" has already been fixed to a value in the domainlab_args section."
- )
- raise RuntimeError(
- f"the hyperparameter "
- f"{np.intersect1d(list(args_algo_specific.keys()), list(hyperparameters.keys()))}"
- f" has already been fixed to a value in the domainlab_args section."
- )
- apply_dict_to_args(args, args_domainlab_common)
- args_algo_specific_scientific_notation = convert_dict2float(args_algo_specific)
- apply_dict_to_args(args, args_algo_specific_scientific_notation, extend=True)
- apply_dict_to_args(args, hyperparameters)
- apply_dict_to_args(args, misc, extend=True)
- gpu_ind = param_index % num_gpus
- args.device = str(gpu_ind)
-
- if torch.cuda.is_available():
- torch.cuda.init()
- logger.info("before experiment loop: ")
- logger.info(str(torch.cuda.memory_summary()))
- if start_seed is None:
- start_seed = config["startseed"]
- end_seed = config["endseed"]
- else:
- end_seed = start_seed + (config["endseed"] - config["startseed"])
- for seed in range(start_seed, end_seed + 1):
- for te_d in config["test_domains"]:
- args.te_d = te_d
- set_seed(seed)
- args.seed = seed
- try:
- if torch.cuda.is_available():
- logger.info("before experiment starts")
- logger.info(str(torch.cuda.memory_summary()))
- except KeyError as ex:
- logger.error(str(ex))
- args.lr = float(args.lr)
- # <=' not supported between instances of 'float' and 'str
- exp = Exp(args=args, visitor=ExpProtocolAggWriter)
- # NOTE: if key "testing" is set in benchmark, then do not execute
- # experiment
- if not misc.get("testing", False):
- exp.execute()
- try:
- if torch.cuda.is_available():
- logger.info("before torch memory clean up")
- logger.info(str(torch.cuda.memory_summary()))
- except KeyError as ex:
- logger.error(str(ex))
- del exp
- torch.cuda.empty_cache()
- gc.collect()
- try:
- if torch.cuda.is_available():
- logger.info("after torch memory clean up")
- logger.info(str(torch.cuda.memory_summary()))
- except KeyError as ex:
- logger.error(str(ex))
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/build/html/_modules/domainlab/mk_exp.html b/docs/build/html/_modules/domainlab/mk_exp.html
deleted file mode 100644
index f4697e0aa..000000000
--- a/docs/build/html/_modules/domainlab/mk_exp.html
+++ /dev/null
@@ -1,411 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- domainlab.mk_exp — domainlab documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Skip to content
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source code for domainlab.mk_exp
- """
-make an experiment
-"""
-from domainlab.arg_parser import mk_parser_main
-from domainlab.exp.exp_main import Exp
-
-
-[docs] def mk_exp(task, model, trainer: str, test_domain: str, batchsize: int, nocu=False):
- """
- 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
- """
- str_arg = (
- f"--model=apimodel --trainer={trainer} --te_d={test_domain} --bs={batchsize}"
- )
- if nocu:
- str_arg += " --nocu"
- parser = mk_parser_main()
- conf = parser.parse_args(str_arg.split())
- exp = Exp(conf, task, model=model)
- return exp
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/build/html/_modules/domainlab/models/a_model.html b/docs/build/html/_modules/domainlab/models/a_model.html
index 2e270487c..96f148b8b 100644
--- a/docs/build/html/_modules/domainlab/models/a_model.html
+++ b/docs/build/html/_modules/domainlab/models/a_model.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -576,7 +568,7 @@ Source code for domainlab.m
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/a_model_classif.html b/docs/build/html/_modules/domainlab/models/a_model_classif.html
index 89e672964..c49431094 100644
--- a/docs/build/html/_modules/domainlab/models/a_model_classif.html
+++ b/docs/build/html/_modules/domainlab/models/a_model_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -610,7 +602,7 @@ Source code for dom
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/args_jigen.html b/docs/build/html/_modules/domainlab/models/args_jigen.html
index 8fcd63446..6cdae6f8d 100644
--- a/docs/build/html/_modules/domainlab/models/args_jigen.html
+++ b/docs/build/html/_modules/domainlab/models/args_jigen.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -393,7 +385,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/args_vae.html b/docs/build/html/_modules/domainlab/models/args_vae.html
index ffa03f24e..5d78fa41b 100644
--- a/docs/build/html/_modules/domainlab/models/args_vae.html
+++ b/docs/build/html/_modules/domainlab/models/args_vae.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -440,7 +432,7 @@ Source code for domainlab.
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/interface_vae_xyd.html b/docs/build/html/_modules/domainlab/models/interface_vae_xyd.html
index cf7bbe2fb..2ca349eb6 100644
--- a/docs/build/html/_modules/domainlab/models/interface_vae_xyd.html
+++ b/docs/build/html/_modules/domainlab/models/interface_vae_xyd.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -411,7 +403,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_custom.html b/docs/build/html/_modules/domainlab/models/model_custom.html
index e178a4ae8..45fcba94e 100644
--- a/docs/build/html/_modules/domainlab/models/model_custom.html
+++ b/docs/build/html/_modules/domainlab/models/model_custom.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -380,7 +372,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_dann.html b/docs/build/html/_modules/domainlab/models/model_dann.html
index a9f51cdab..8166dcb0a 100644
--- a/docs/build/html/_modules/domainlab/models/model_dann.html
+++ b/docs/build/html/_modules/domainlab/models/model_dann.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -474,7 +466,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_diva.html b/docs/build/html/_modules/domainlab/models/model_diva.html
index 690020df0..e55b1dc5c 100644
--- a/docs/build/html/_modules/domainlab/models/model_diva.html
+++ b/docs/build/html/_modules/domainlab/models/model_diva.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -530,7 +522,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_hduva.html b/docs/build/html/_modules/domainlab/models/model_hduva.html
index 570f65872..cd9688224 100644
--- a/docs/build/html/_modules/domainlab/models/model_hduva.html
+++ b/docs/build/html/_modules/domainlab/models/model_hduva.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -580,7 +572,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_jigen.html b/docs/build/html/_modules/domainlab/models/model_jigen.html
index 24880d47e..a80dd4e38 100644
--- a/docs/build/html/_modules/domainlab/models/model_jigen.html
+++ b/docs/build/html/_modules/domainlab/models/model_jigen.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -490,7 +482,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/models/model_vae_xyd_classif.html b/docs/build/html/_modules/domainlab/models/model_vae_xyd_classif.html
index 964578aba..a81619002 100644
--- a/docs/build/html/_modules/domainlab/models/model_vae_xyd_classif.html
+++ b/docs/build/html/_modules/domainlab/models/model_vae_xyd_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -407,7 +399,7 @@ Source code f
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/a_task.html b/docs/build/html/_modules/domainlab/tasks/a_task.html
index 8467de262..f97847264 100644
--- a/docs/build/html/_modules/domainlab/tasks/a_task.html
+++ b/docs/build/html/_modules/domainlab/tasks/a_task.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -550,7 +542,7 @@ Source code for domainlab.tas
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/a_task_classif.html b/docs/build/html/_modules/domainlab/tasks/a_task_classif.html
index 05fd3909c..ee9230a5f 100644
--- a/docs/build/html/_modules/domainlab/tasks/a_task_classif.html
+++ b/docs/build/html/_modules/domainlab/tasks/a_task_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -442,7 +434,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/b_task.html b/docs/build/html/_modules/domainlab/tasks/b_task.html
index e7c44c3cb..e0945d81c 100644
--- a/docs/build/html/_modules/domainlab/tasks/b_task.html
+++ b/docs/build/html/_modules/domainlab/tasks/b_task.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -438,7 +430,7 @@ Source code for domainlab.tas
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/b_task_classif.html b/docs/build/html/_modules/domainlab/tasks/b_task_classif.html
index 89607de97..09dd1fd0c 100644
--- a/docs/build/html/_modules/domainlab/tasks/b_task_classif.html
+++ b/docs/build/html/_modules/domainlab/tasks/b_task_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -407,7 +399,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_dset.html b/docs/build/html/_modules/domainlab/tasks/task_dset.html
index 1f6e7bd09..0d9e2dc1a 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_dset.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_dset.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -431,7 +423,7 @@ Source code for domainlab.
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_folder.html b/docs/build/html/_modules/domainlab/tasks/task_folder.html
index 3fb509c10..c18353b46 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_folder.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_folder.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -475,7 +467,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_folder_mk.html b/docs/build/html/_modules/domainlab/tasks/task_folder_mk.html
index 96598eaa9..1911cf998 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_folder_mk.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_folder_mk.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -425,7 +417,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_mini_vlcs.html b/docs/build/html/_modules/domainlab/tasks/task_mini_vlcs.html
index 1f42be05f..8a7bb2ca7 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_mini_vlcs.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_mini_vlcs.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -425,7 +417,7 @@ Source code for domai
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_mnist_color.html b/docs/build/html/_modules/domainlab/tasks/task_mnist_color.html
index 16c790499..604546920 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_mnist_color.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_mnist_color.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -428,7 +420,7 @@ Source code for dom
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_pathlist.html b/docs/build/html/_modules/domainlab/tasks/task_pathlist.html
index 654e98cea..e905301a1 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_pathlist.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_pathlist.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -500,7 +492,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/task_utils.html b/docs/build/html/_modules/domainlab/tasks/task_utils.html
index f24ea6f4c..eff3bfd66 100644
--- a/docs/build/html/_modules/domainlab/tasks/task_utils.html
+++ b/docs/build/html/_modules/domainlab/tasks/task_utils.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -391,7 +383,7 @@ Source code for domainlab
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/utils_task.html b/docs/build/html/_modules/domainlab/tasks/utils_task.html
index 95a993eb7..47b7a2717 100644
--- a/docs/build/html/_modules/domainlab/tasks/utils_task.html
+++ b/docs/build/html/_modules/domainlab/tasks/utils_task.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -653,7 +645,7 @@ Source code for domainlab
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/utils_task_dset.html b/docs/build/html/_modules/domainlab/tasks/utils_task_dset.html
index 66e1137bd..06ba29dc0 100644
--- a/docs/build/html/_modules/domainlab/tasks/utils_task_dset.html
+++ b/docs/build/html/_modules/domainlab/tasks/utils_task_dset.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -442,7 +434,7 @@ Source code for doma
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/tasks/zoo_tasks.html b/docs/build/html/_modules/domainlab/tasks/zoo_tasks.html
index cfeb49952..684d0da04 100644
--- a/docs/build/html/_modules/domainlab/tasks/zoo_tasks.html
+++ b/docs/build/html/_modules/domainlab/tasks/zoo_tasks.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -424,7 +416,7 @@ Source code for domainlab.
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/flows_gen_img_model.html b/docs/build/html/_modules/domainlab/utils/flows_gen_img_model.html
index 22ebed58c..54544da85 100644
--- a/docs/build/html/_modules/domainlab/utils/flows_gen_img_model.html
+++ b/docs/build/html/_modules/domainlab/utils/flows_gen_img_model.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -488,7 +480,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/generate_benchmark_plots.html b/docs/build/html/_modules/domainlab/utils/generate_benchmark_plots.html
index c3b2fc080..5ecebede9 100644
--- a/docs/build/html/_modules/domainlab/utils/generate_benchmark_plots.html
+++ b/docs/build/html/_modules/domainlab/utils/generate_benchmark_plots.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -1029,7 +1021,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/get_git_tag.html b/docs/build/html/_modules/domainlab/utils/get_git_tag.html
index 4210ad43c..35abef38d 100644
--- a/docs/build/html/_modules/domainlab/utils/get_git_tag.html
+++ b/docs/build/html/_modules/domainlab/utils/get_git_tag.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -403,7 +395,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/hyperparameter_gridsearch.html b/docs/build/html/_modules/domainlab/utils/hyperparameter_gridsearch.html
index 27c0bdb96..31e03b90e 100644
--- a/docs/build/html/_modules/domainlab/utils/hyperparameter_gridsearch.html
+++ b/docs/build/html/_modules/domainlab/utils/hyperparameter_gridsearch.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -800,7 +792,7 @@ Source cod
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/hyperparameter_sampling.html b/docs/build/html/_modules/domainlab/utils/hyperparameter_sampling.html
index 169c08ac4..dc4cdd94a 100644
--- a/docs/build/html/_modules/domainlab/utils/hyperparameter_sampling.html
+++ b/docs/build/html/_modules/domainlab/utils/hyperparameter_sampling.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -853,7 +845,7 @@ Source code
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/logger.html b/docs/build/html/_modules/domainlab/utils/logger.html
index 41fd8a1f4..fac2da90b 100644
--- a/docs/build/html/_modules/domainlab/utils/logger.html
+++ b/docs/build/html/_modules/domainlab/utils/logger.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -410,7 +402,7 @@ Source code for domainlab.uti
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/override_interface.html b/docs/build/html/_modules/domainlab/utils/override_interface.html
index 48cda0541..8ef7de58f 100644
--- a/docs/build/html/_modules/domainlab/utils/override_interface.html
+++ b/docs/build/html/_modules/domainlab/utils/override_interface.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -390,7 +382,7 @@ Source code for d
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/perf.html b/docs/build/html/_modules/domainlab/utils/perf.html
index 18a7e5b93..a4055ac7a 100644
--- a/docs/build/html/_modules/domainlab/utils/perf.html
+++ b/docs/build/html/_modules/domainlab/utils/perf.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -429,7 +421,7 @@ Source code for domainlab.utils
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/perf_metrics.html b/docs/build/html/_modules/domainlab/utils/perf_metrics.html
index 97dfeb915..9e9c82e23 100644
--- a/docs/build/html/_modules/domainlab/utils/perf_metrics.html
+++ b/docs/build/html/_modules/domainlab/utils/perf_metrics.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -462,7 +454,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/sanity_check.html b/docs/build/html/_modules/domainlab/utils/sanity_check.html
index 6d876d659..defe0e7b2 100644
--- a/docs/build/html/_modules/domainlab/utils/sanity_check.html
+++ b/docs/build/html/_modules/domainlab/utils/sanity_check.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -457,7 +449,7 @@ Source code for domainl
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/test_img.html b/docs/build/html/_modules/domainlab/utils/test_img.html
index 16c100906..7ebcfd95c 100644
--- a/docs/build/html/_modules/domainlab/utils/test_img.html
+++ b/docs/build/html/_modules/domainlab/utils/test_img.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -392,7 +384,7 @@ Source code for domainlab.u
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/u_import.html b/docs/build/html/_modules/domainlab/utils/u_import.html
index 7f8fdd8c1..f31d7a3e4 100644
--- a/docs/build/html/_modules/domainlab/utils/u_import.html
+++ b/docs/build/html/_modules/domainlab/utils/u_import.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -376,7 +368,7 @@ Source code for domainlab.u
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/u_import_net_module.html b/docs/build/html/_modules/domainlab/utils/u_import_net_module.html
index 063faaa42..5c732732b 100644
--- a/docs/build/html/_modules/domainlab/utils/u_import_net_module.html
+++ b/docs/build/html/_modules/domainlab/utils/u_import_net_module.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -416,7 +408,7 @@ Source code for
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/utils_class.html b/docs/build/html/_modules/domainlab/utils/utils_class.html
index 23034d5f0..e2f7179c1 100644
--- a/docs/build/html/_modules/domainlab/utils/utils_class.html
+++ b/docs/build/html/_modules/domainlab/utils/utils_class.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -391,7 +383,7 @@ Source code for domainla
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/utils_classif.html b/docs/build/html/_modules/domainlab/utils/utils_classif.html
index 98934ba22..9b2d12286 100644
--- a/docs/build/html/_modules/domainlab/utils/utils_classif.html
+++ b/docs/build/html/_modules/domainlab/utils/utils_classif.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -406,7 +398,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/utils_cuda.html b/docs/build/html/_modules/domainlab/utils/utils_cuda.html
index d95260091..d19b0beb4 100644
--- a/docs/build/html/_modules/domainlab/utils/utils_cuda.html
+++ b/docs/build/html/_modules/domainlab/utils/utils_cuda.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -387,7 +379,7 @@ Source code for domainlab
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/domainlab/utils/utils_img_sav.html b/docs/build/html/_modules/domainlab/utils/utils_img_sav.html
index 5ff9004ff..31454bf1c 100644
--- a/docs/build/html/_modules/domainlab/utils/utils_img_sav.html
+++ b/docs/build/html/_modules/domainlab/utils/utils_img_sav.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -309,13 +308,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -404,7 +396,7 @@ Source code for domain
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html
index 31c12b121..7c9ad56ad 100644
--- a/docs/build/html/_modules/index.html
+++ b/docs/build/html/_modules/index.html
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,6 @@
-
@@ -307,13 +306,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -376,7 +368,6 @@ All modules for which code is available
domainlab.algos.utils
domainlab.algos.zoo_algos
domainlab.arg_parser
-domainlab.cli
domainlab.compos.a_nn_builder
domainlab.compos.builder_nn_alex
domainlab.compos.builder_nn_conv_bn_relu_2
@@ -420,11 +411,7 @@ All modules for which code is available
domainlab.dsets.utils_data
domainlab.dsets.utils_wrapdset_patches
domainlab.exp.exp_cuda_seed
-domainlab.exp.exp_main
-domainlab.exp.exp_utils
domainlab.exp_protocol.aggregate_results
-domainlab.exp_protocol.run_experiment
-domainlab.mk_exp
domainlab.models.a_model
domainlab.models.a_model_classif
domainlab.models.args_jigen
@@ -493,7 +480,7 @@ All modules for which code is available
Created using
- Sphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/_static/basic.css b/docs/build/html/_static/basic.css
index 088967717..bf18350b6 100644
--- a/docs/build/html/_static/basic.css
+++ b/docs/build/html/_static/basic.css
@@ -222,7 +222,7 @@ table.modindextable td {
/* -- general body styles --------------------------------------------------- */
div.body {
- min-width: 360px;
+ min-width: 450px;
max-width: 800px;
}
@@ -237,6 +237,16 @@ a.headerlink {
visibility: hidden;
}
+a.brackets:before,
+span.brackets > a:before{
+ content: "[";
+}
+
+a.brackets:after,
+span.brackets > a:after {
+ content: "]";
+}
+
h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
@@ -324,16 +334,12 @@ aside.sidebar {
p.sidebar-title {
font-weight: bold;
}
-nav.contents,
-aside.topic,
div.admonition, div.topic, blockquote {
clear: left;
}
/* -- topics ---------------------------------------------------------------- */
-nav.contents,
-aside.topic,
div.topic {
border: 1px solid #ccc;
@@ -373,9 +379,6 @@ div.body p.centered {
div.sidebar > :last-child,
aside.sidebar > :last-child,
-nav.contents > :last-child,
-aside.topic > :last-child,
-
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
@@ -383,9 +386,6 @@ div.admonition > :last-child {
div.sidebar::after,
aside.sidebar::after,
-nav.contents::after,
-aside.topic::after,
-
div.topic::after,
div.admonition::after,
blockquote::after {
@@ -428,6 +428,10 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}
+table.footnote td, table.footnote th {
+ border: 0 !important;
+}
+
th {
text-align: left;
padding-right: 5px;
@@ -611,7 +615,6 @@ ul.simple p {
margin-bottom: 0;
}
-/* Docutils 0.17 and older (footnotes & citations) */
dl.footnote > dt,
dl.citation > dt {
float: left;
@@ -629,33 +632,6 @@ dl.citation > dd:after {
clear: both;
}
-/* Docutils 0.18+ (footnotes & citations) */
-aside.footnote > span,
-div.citation > span {
- float: left;
-}
-aside.footnote > span:last-of-type,
-div.citation > span:last-of-type {
- padding-right: 0.5em;
-}
-aside.footnote > p {
- margin-left: 2em;
-}
-div.citation > p {
- margin-left: 4em;
-}
-aside.footnote > p:last-of-type,
-div.citation > p:last-of-type {
- margin-bottom: 0em;
-}
-aside.footnote > p:last-of-type:after,
-div.citation > p:last-of-type:after {
- content: "";
- clear: both;
-}
-
-/* Footnotes & citations ends */
-
dl.field-list {
display: grid;
grid-template-columns: fit-content(30%) auto;
diff --git a/docs/build/html/_static/doctools.js b/docs/build/html/_static/doctools.js
index c3db08d1c..e509e4834 100644
--- a/docs/build/html/_static/doctools.js
+++ b/docs/build/html/_static/doctools.js
@@ -2,263 +2,325 @@
* doctools.js
* ~~~~~~~~~~~
*
- * Base JavaScript utilities for all Sphinx HTML documentation.
+ * Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
-"use strict";
-const _ready = (callback) => {
- if (document.readyState !== "loading") {
- callback();
- } else {
- document.addEventListener("DOMContentLoaded", callback);
+/**
+ * select a different prefix for underscore
+ */
+$u = _.noConflict();
+
+/**
+ * make the code below compatible with browsers without
+ * an installed firebug like debugger
+if (!window.console || !console.firebug) {
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
+ "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
+ "profile", "profileEnd"];
+ window.console = {};
+ for (var i = 0; i < names.length; ++i)
+ window.console[names[i]] = function() {};
+}
+ */
+
+/**
+ * small helper function to urldecode strings
+ *
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
+ */
+jQuery.urldecode = function(x) {
+ if (!x) {
+ return x
}
+ return decodeURIComponent(x.replace(/\+/g, ' '));
};
/**
- * highlight a given string on a node by wrapping it in
- * span elements with the given class name.
+ * small helper function to urlencode strings
*/
-const _highlight = (node, addItems, text, className) => {
- if (node.nodeType === Node.TEXT_NODE) {
- const val = node.nodeValue;
- const parent = node.parentNode;
- const pos = val.toLowerCase().indexOf(text);
- if (
- pos >= 0 &&
- !parent.classList.contains(className) &&
- !parent.classList.contains("nohighlight")
- ) {
- let span;
+jQuery.urlencode = encodeURIComponent;
- const closestNode = parent.closest("body, svg, foreignObject");
- const isInSVG = closestNode && closestNode.matches("svg");
- if (isInSVG) {
- span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
- } else {
- span = document.createElement("span");
- span.classList.add(className);
- }
+/**
+ * This function returns the parsed url parameters of the
+ * current request. Multiple values per key are supported,
+ * it will always return arrays of strings for the value parts.
+ */
+jQuery.getQueryParameters = function(s) {
+ if (typeof s === 'undefined')
+ s = document.location.search;
+ var parts = s.substr(s.indexOf('?') + 1).split('&');
+ var result = {};
+ for (var i = 0; i < parts.length; i++) {
+ var tmp = parts[i].split('=', 2);
+ var key = jQuery.urldecode(tmp[0]);
+ var value = jQuery.urldecode(tmp[1]);
+ if (key in result)
+ result[key].push(value);
+ else
+ result[key] = [value];
+ }
+ return result;
+};
- span.appendChild(document.createTextNode(val.substr(pos, text.length)));
- parent.insertBefore(
- span,
- parent.insertBefore(
+/**
+ * highlight a given string on a jquery object by wrapping it in
+ * span elements with the given class name.
+ */
+jQuery.fn.highlightText = function(text, className) {
+ function highlight(node, addItems) {
+ if (node.nodeType === 3) {
+ var val = node.nodeValue;
+ var pos = val.toLowerCase().indexOf(text);
+ if (pos >= 0 &&
+ !jQuery(node.parentNode).hasClass(className) &&
+ !jQuery(node.parentNode).hasClass("nohighlight")) {
+ var span;
+ var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
+ if (isInSVG) {
+ span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
+ } else {
+ span = document.createElement("span");
+ span.className = className;
+ }
+ span.appendChild(document.createTextNode(val.substr(pos, text.length)));
+ node.parentNode.insertBefore(span, node.parentNode.insertBefore(
document.createTextNode(val.substr(pos + text.length)),
- node.nextSibling
- )
- );
- node.nodeValue = val.substr(0, pos);
-
- if (isInSVG) {
- const rect = document.createElementNS(
- "http://www.w3.org/2000/svg",
- "rect"
- );
- const bbox = parent.getBBox();
- rect.x.baseVal.value = bbox.x;
- rect.y.baseVal.value = bbox.y;
- rect.width.baseVal.value = bbox.width;
- rect.height.baseVal.value = bbox.height;
- rect.setAttribute("class", className);
- addItems.push({ parent: parent, target: rect });
+ node.nextSibling));
+ node.nodeValue = val.substr(0, pos);
+ if (isInSVG) {
+ var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
+ var bbox = node.parentElement.getBBox();
+ rect.x.baseVal.value = bbox.x;
+ rect.y.baseVal.value = bbox.y;
+ rect.width.baseVal.value = bbox.width;
+ rect.height.baseVal.value = bbox.height;
+ rect.setAttribute('class', className);
+ addItems.push({
+ "parent": node.parentNode,
+ "target": rect});
+ }
}
}
- } else if (node.matches && !node.matches("button, select, textarea")) {
- node.childNodes.forEach((el) => _highlight(el, addItems, text, className));
+ else if (!jQuery(node).is("button, select, textarea")) {
+ jQuery.each(node.childNodes, function() {
+ highlight(this, addItems);
+ });
+ }
}
-};
-const _highlightText = (thisNode, text, className) => {
- let addItems = [];
- _highlight(thisNode, addItems, text, className);
- addItems.forEach((obj) =>
- obj.parent.insertAdjacentElement("beforebegin", obj.target)
- );
+ var addItems = [];
+ var result = this.each(function() {
+ highlight(this, addItems);
+ });
+ for (var i = 0; i < addItems.length; ++i) {
+ jQuery(addItems[i].parent).before(addItems[i].target);
+ }
+ return result;
};
+/*
+ * backward compatibility for jQuery.browser
+ * This will be supported until firefox bug is fixed.
+ */
+if (!jQuery.browser) {
+ jQuery.uaMatch = function(ua) {
+ ua = ua.toLowerCase();
+
+ var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
+ /(webkit)[ \/]([\w.]+)/.exec(ua) ||
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
+ /(msie) ([\w.]+)/.exec(ua) ||
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
+ [];
+
+ return {
+ browser: match[ 1 ] || "",
+ version: match[ 2 ] || "0"
+ };
+ };
+ jQuery.browser = {};
+ jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
+}
+
/**
* Small JavaScript module for the documentation.
*/
-const Documentation = {
- init: () => {
- Documentation.highlightSearchWords();
- Documentation.initDomainIndexTable();
- Documentation.initOnKeyListeners();
+var Documentation = {
+
+ init : function() {
+ this.fixFirefoxAnchorBug();
+ this.highlightSearchWords();
+ this.initIndexTable();
+ if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
+ this.initOnKeyListeners();
+ }
},
/**
* i18n support
*/
- TRANSLATIONS: {},
- PLURAL_EXPR: (n) => (n === 1 ? 0 : 1),
- LOCALE: "unknown",
+ TRANSLATIONS : {},
+ PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
+ LOCALE : 'unknown',
// gettext and ngettext don't access this so that the functions
// can safely bound to a different name (_ = Documentation.gettext)
- gettext: (string) => {
- const translated = Documentation.TRANSLATIONS[string];
- switch (typeof translated) {
- case "undefined":
- return string; // no translation
- case "string":
- return translated; // translation exists
- default:
- return translated[0]; // (singular, plural) translation tuple exists
- }
+ gettext : function(string) {
+ var translated = Documentation.TRANSLATIONS[string];
+ if (typeof translated === 'undefined')
+ return string;
+ return (typeof translated === 'string') ? translated : translated[0];
},
- ngettext: (singular, plural, n) => {
- const translated = Documentation.TRANSLATIONS[singular];
- if (typeof translated !== "undefined")
- return translated[Documentation.PLURAL_EXPR(n)];
- return n === 1 ? singular : plural;
+ ngettext : function(singular, plural, n) {
+ var translated = Documentation.TRANSLATIONS[singular];
+ if (typeof translated === 'undefined')
+ return (n == 1) ? singular : plural;
+ return translated[Documentation.PLURALEXPR(n)];
},
- addTranslations: (catalog) => {
- Object.assign(Documentation.TRANSLATIONS, catalog.messages);
- Documentation.PLURAL_EXPR = new Function(
- "n",
- `return (${catalog.plural_expr})`
- );
- Documentation.LOCALE = catalog.locale;
+ addTranslations : function(catalog) {
+ for (var key in catalog.messages)
+ this.TRANSLATIONS[key] = catalog.messages[key];
+ this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
+ this.LOCALE = catalog.locale;
},
/**
- * highlight the search words provided in the url in the text
+ * add context elements like header anchor links
*/
- highlightSearchWords: () => {
- const highlight =
- new URLSearchParams(window.location.search).get("highlight") || "";
- const terms = highlight.toLowerCase().split(/\s+/).filter(x => x);
- if (terms.length === 0) return; // nothing to do
-
- // There should never be more than one element matching "div.body"
- const divBody = document.querySelectorAll("div.body");
- const body = divBody.length ? divBody[0] : document.querySelector("body");
- window.setTimeout(() => {
- terms.forEach((term) => _highlightText(body, term, "highlighted"));
- }, 10);
-
- const searchBox = document.getElementById("searchbox");
- if (searchBox === null) return;
- searchBox.appendChild(
- document
- .createRange()
- .createContextualFragment(
- '' +
- '' +
- Documentation.gettext("Hide Search Matches") +
- "
"
- )
- );
+ addContextElements : function() {
+ $('div[id] > :header:first').each(function() {
+ $('').
+ attr('href', '#' + this.id).
+ attr('title', _('Permalink to this headline')).
+ appendTo(this);
+ });
+ $('dt[id]').each(function() {
+ $('').
+ attr('href', '#' + this.id).
+ attr('title', _('Permalink to this definition')).
+ appendTo(this);
+ });
},
/**
- * helper function to hide the search marks again
+ * workaround a firefox stupidity
+ * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
- hideSearchWords: () => {
- document
- .querySelectorAll("#searchbox .highlight-link")
- .forEach((el) => el.remove());
- document
- .querySelectorAll("span.highlighted")
- .forEach((el) => el.classList.remove("highlighted"));
- const url = new URL(window.location);
- url.searchParams.delete("highlight");
- window.history.replaceState({}, "", url);
+ fixFirefoxAnchorBug : function() {
+ if (document.location.hash && $.browser.mozilla)
+ window.setTimeout(function() {
+ document.location.href += '';
+ }, 10);
},
/**
- * helper function to focus on search bar
+ * highlight the search words provided in the url in the text
*/
- focusSearchBar: () => {
- document.querySelectorAll("input[name=q]")[0]?.focus();
+ highlightSearchWords : function() {
+ var params = $.getQueryParameters();
+ var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
+ if (terms.length) {
+ var body = $('div.body');
+ if (!body.length) {
+ body = $('body');
+ }
+ window.setTimeout(function() {
+ $.each(terms, function() {
+ body.highlightText(this.toLowerCase(), 'highlighted');
+ });
+ }, 10);
+ $('' + _('Hide Search Matches') + '
')
+ .appendTo($('#searchbox'));
+ }
},
/**
- * Initialise the domain index toggle buttons
+ * init the domain index toggle buttons
*/
- initDomainIndexTable: () => {
- const toggler = (el) => {
- const idNumber = el.id.substr(7);
- const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`);
- if (el.src.substr(-9) === "minus.png") {
- el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`;
- toggledRows.forEach((el) => (el.style.display = "none"));
- } else {
- el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`;
- toggledRows.forEach((el) => (el.style.display = ""));
- }
- };
-
- const togglerElements = document.querySelectorAll("img.toggler");
- togglerElements.forEach((el) =>
- el.addEventListener("click", (event) => toggler(event.currentTarget))
- );
- togglerElements.forEach((el) => (el.style.display = ""));
- if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler);
+ initIndexTable : function() {
+ var togglers = $('img.toggler').click(function() {
+ var src = $(this).attr('src');
+ var idnum = $(this).attr('id').substr(7);
+ $('tr.cg-' + idnum).toggle();
+ if (src.substr(-9) === 'minus.png')
+ $(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
+ else
+ $(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
+ }).css('display', '');
+ if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
+ togglers.click();
+ }
},
- initOnKeyListeners: () => {
- // only install a listener if it is really needed
- if (
- !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
- !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS
- )
- return;
+ /**
+ * helper function to hide the search marks again
+ */
+ hideSearchWords : function() {
+ $('#searchbox .highlight-link').fadeOut(300);
+ $('span.highlighted').removeClass('highlighted');
+ var url = new URL(window.location);
+ url.searchParams.delete('highlight');
+ window.history.replaceState({}, '', url);
+ },
- const blacklistedElements = new Set([
- "TEXTAREA",
- "INPUT",
- "SELECT",
- "BUTTON",
- ]);
- document.addEventListener("keydown", (event) => {
- if (blacklistedElements.has(document.activeElement.tagName)) return; // bail for input elements
- if (event.altKey || event.ctrlKey || event.metaKey) return; // bail with special keys
+ /**
+ * make the url absolute
+ */
+ makeURL : function(relativeURL) {
+ return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
+ },
- if (!event.shiftKey) {
- switch (event.key) {
- case "ArrowLeft":
- if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break;
+ /**
+ * get the current relative url
+ */
+ getCurrentURL : function() {
+ var path = document.location.pathname;
+ var parts = path.split(/\//);
+ $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
+ if (this === '..')
+ parts.pop();
+ });
+ var url = parts.join('/');
+ return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
+ },
- const prevLink = document.querySelector('link[rel="prev"]');
- if (prevLink && prevLink.href) {
- window.location.href = prevLink.href;
- event.preventDefault();
+ initOnKeyListeners: function() {
+ $(document).keydown(function(event) {
+ var activeElementType = document.activeElement.tagName;
+ // don't navigate when in search box, textarea, dropdown or button
+ if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
+ && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
+ && !event.shiftKey) {
+ switch (event.keyCode) {
+ case 37: // left
+ var prevHref = $('link[rel="prev"]').prop('href');
+ if (prevHref) {
+ window.location.href = prevHref;
+ return false;
}
break;
- case "ArrowRight":
- if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break;
-
- const nextLink = document.querySelector('link[rel="next"]');
- if (nextLink && nextLink.href) {
- window.location.href = nextLink.href;
- event.preventDefault();
+ case 39: // right
+ var nextHref = $('link[rel="next"]').prop('href');
+ if (nextHref) {
+ window.location.href = nextHref;
+ return false;
}
break;
- case "Escape":
- if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break;
- Documentation.hideSearchWords();
- event.preventDefault();
}
}
-
- // some keyboard layouts may need Shift to get /
- switch (event.key) {
- case "/":
- if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break;
- Documentation.focusSearchBar();
- event.preventDefault();
- }
});
- },
+ }
};
// quick alias for translations
-const _ = Documentation.gettext;
+_ = Documentation.gettext;
-_ready(Documentation.init);
+$(document).ready(function() {
+ Documentation.init();
+});
diff --git a/docs/build/html/_static/documentation_options.js b/docs/build/html/_static/documentation_options.js
index a750e4d5e..2fa8c97fe 100644
--- a/docs/build/html/_static/documentation_options.js
+++ b/docs/build/html/_static/documentation_options.js
@@ -1,14 +1,12 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '',
- LANGUAGE: 'en',
+ LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
- NAVIGATION_WITH_KEYS: false,
- SHOW_SEARCH_SUMMARY: true,
- ENABLE_SEARCH_SHORTCUTS: false,
+ NAVIGATION_WITH_KEYS: false
};
\ No newline at end of file
diff --git a/docs/build/html/_static/language_data.js b/docs/build/html/_static/language_data.js
index 2e22b06ab..ebe2f03bf 100644
--- a/docs/build/html/_static/language_data.js
+++ b/docs/build/html/_static/language_data.js
@@ -10,7 +10,7 @@
*
*/
-var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
+var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version is copied as a separate JS file, is available */
@@ -197,3 +197,101 @@ var Stemmer = function() {
}
}
+
+
+
+var splitChars = (function() {
+ var result = {};
+ var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
+ 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702,
+ 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971,
+ 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345,
+ 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761,
+ 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823,
+ 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125,
+ 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695,
+ 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587,
+ 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141];
+ var i, j, start, end;
+ for (i = 0; i < singles.length; i++) {
+ result[singles[i]] = true;
+ }
+ var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709],
+ [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161],
+ [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568],
+ [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807],
+ [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047],
+ [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383],
+ [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450],
+ [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547],
+ [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673],
+ [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820],
+ [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946],
+ [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023],
+ [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173],
+ [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332],
+ [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481],
+ [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718],
+ [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791],
+ [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095],
+ [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205],
+ [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687],
+ [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968],
+ [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869],
+ [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102],
+ [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271],
+ [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592],
+ [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822],
+ [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167],
+ [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959],
+ [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143],
+ [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318],
+ [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483],
+ [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101],
+ [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567],
+ [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292],
+ [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444],
+ [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783],
+ [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311],
+ [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511],
+ [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774],
+ [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071],
+ [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263],
+ [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519],
+ [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647],
+ [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967],
+ [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295],
+ [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274],
+ [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007],
+ [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381],
+ [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]];
+ for (i = 0; i < ranges.length; i++) {
+ start = ranges[i][0];
+ end = ranges[i][1];
+ for (j = start; j <= end; j++) {
+ result[j] = true;
+ }
+ }
+ return result;
+})();
+
+function splitQuery(query) {
+ var result = [];
+ var start = -1;
+ for (var i = 0; i < query.length; i++) {
+ if (splitChars[query.charCodeAt(i)]) {
+ if (start !== -1) {
+ result.push(query.slice(start, i));
+ start = -1;
+ }
+ } else if (start === -1) {
+ start = i;
+ }
+ }
+ if (start !== -1) {
+ result.push(query.slice(start));
+ }
+ return result;
+}
+
+
diff --git a/docs/build/html/_static/pygments.css b/docs/build/html/_static/pygments.css
index 84ab3030a..08bec689d 100644
--- a/docs/build/html/_static/pygments.css
+++ b/docs/build/html/_static/pygments.css
@@ -17,7 +17,6 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
-.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #E40000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #008400 } /* Generic.Inserted */
diff --git a/docs/build/html/_static/searchtools.js b/docs/build/html/_static/searchtools.js
index ac4d5861f..2d7785937 100644
--- a/docs/build/html/_static/searchtools.js
+++ b/docs/build/html/_static/searchtools.js
@@ -8,20 +8,18 @@
* :license: BSD, see LICENSE for details.
*
*/
-"use strict";
-/**
- * Simple result scoring code.
- */
-if (typeof Scorer === "undefined") {
+if (!Scorer) {
+ /**
+ * Simple result scoring code.
+ */
var Scorer = {
// Implement the following function to further tweak the score for each result
- // The function takes a result array [docname, title, anchor, descr, score, filename]
+ // The function takes a result array [filename, title, anchor, descr, score]
// and returns the new score.
/*
- score: result => {
- const [docname, title, anchor, descr, score, filename] = result
- return score
+ score: function(result) {
+ return result[4];
},
*/
@@ -30,11 +28,9 @@ if (typeof Scorer === "undefined") {
// or matches in the last dotted part of the object name
objPartialMatch: 6,
// Additive scores depending on the priority of the object
- objPrio: {
- 0: 15, // used to be importantResults
- 1: 5, // used to be objectResults
- 2: -5, // used to be unimportantResults
- },
+ objPrio: {0: 15, // used to be importantResults
+ 1: 5, // used to be objectResults
+ 2: -5}, // used to be unimportantResults
// Used when the priority is not in the mapping.
objPrioDefault: 0,
@@ -43,455 +39,456 @@ if (typeof Scorer === "undefined") {
partialTitle: 7,
// query found in terms
term: 5,
- partialTerm: 2,
+ partialTerm: 2
};
}
-const _removeChildren = (element) => {
- while (element && element.lastChild) element.removeChild(element.lastChild);
-};
-
-/**
- * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping
- */
-const _escapeRegExp = (string) =>
- string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
-
-const _displayItem = (item, highlightTerms, searchTerms) => {
- const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
- const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT;
- const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
- const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
- const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
-
- const [docName, title, anchor, descr] = item;
-
- let listItem = document.createElement("li");
- let requestUrl;
- let linkUrl;
- if (docBuilder === "dirhtml") {
- // dirhtml builder
- let dirname = docName + "/";
- if (dirname.match(/\/index\/$/))
- dirname = dirname.substring(0, dirname.length - 6);
- else if (dirname === "index/") dirname = "";
- requestUrl = docUrlRoot + dirname;
- linkUrl = requestUrl;
- } else {
- // normal html builders
- requestUrl = docUrlRoot + docName + docFileSuffix;
- linkUrl = docName + docLinkSuffix;
- }
- const params = new URLSearchParams();
- params.set("highlight", [...highlightTerms].join(" "));
- let linkEl = listItem.appendChild(document.createElement("a"));
- linkEl.href = linkUrl + "?" + params.toString() + anchor;
- linkEl.innerHTML = title;
- if (descr)
- listItem.appendChild(document.createElement("span")).innerText =
- " (" + descr + ")";
- else if (showSearchSummary)
- fetch(requestUrl)
- .then((responseData) => responseData.text())
- .then((data) => {
- if (data)
- listItem.appendChild(
- Search.makeSearchSummary(data, searchTerms, highlightTerms)
- );
- });
- Search.output.appendChild(listItem);
-};
-const _finishSearch = (resultCount) => {
- Search.stopPulse();
- Search.title.innerText = _("Search Results");
- if (!resultCount)
- Search.status.innerText = Documentation.gettext(
- "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
- );
- else
- Search.status.innerText = _(
- `Search finished, found ${resultCount} page(s) matching the search query.`
- );
-};
-const _displayNextItem = (
- results,
- resultCount,
- highlightTerms,
- searchTerms
-) => {
- // results left, load the summary and display it
- // this is intended to be dynamic (don't sub resultsCount)
- if (results.length) {
- _displayItem(results.pop(), highlightTerms, searchTerms);
- setTimeout(
- () => _displayNextItem(results, resultCount, highlightTerms, searchTerms),
- 5
- );
+if (!splitQuery) {
+ function splitQuery(query) {
+ return query.split(/\s+/);
}
- // search finished, update title and status message
- else _finishSearch(resultCount);
-};
-
-/**
- * Default splitQuery function. Can be overridden in ``sphinx.search`` with a
- * custom function per language.
- *
- * The regular expression works by splitting the string on consecutive characters
- * that are not Unicode letters, numbers, underscores, or emoji characters.
- * This is the same as ``\W+`` in Python, preserving the surrogate pair area.
- */
-if (typeof splitQuery === "undefined") {
- var splitQuery = (query) => query
- .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu)
- .filter(term => term) // remove remaining empty strings
}
/**
* Search Module
*/
-const Search = {
- _index: null,
- _queued_query: null,
- _pulse_status: -1,
-
- htmlToText: (htmlString) => {
- const htmlElement = document
- .createRange()
- .createContextualFragment(htmlString);
- _removeChildren(htmlElement.querySelectorAll(".headerlink"));
- const docContent = htmlElement.querySelector('[role="main"]');
- if (docContent !== undefined) return docContent.textContent;
- console.warn(
- "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template."
- );
- return "";
+var Search = {
+
+ _index : null,
+ _queued_query : null,
+ _pulse_status : -1,
+
+ htmlToText : function(htmlString) {
+ var virtualDocument = document.implementation.createHTMLDocument('virtual');
+ var htmlElement = $(htmlString, virtualDocument);
+ htmlElement.find('.headerlink').remove();
+ docContent = htmlElement.find('[role=main]')[0];
+ if(docContent === undefined) {
+ console.warn("Content block not found. Sphinx search tries to obtain it " +
+ "via '[role=main]'. Could you check your theme or template.");
+ return "";
+ }
+ return docContent.textContent || docContent.innerText;
},
- init: () => {
- const query = new URLSearchParams(window.location.search).get("q");
- document
- .querySelectorAll('input[name="q"]')
- .forEach((el) => (el.value = query));
- if (query) Search.performSearch(query);
+ init : function() {
+ var params = $.getQueryParameters();
+ if (params.q) {
+ var query = params.q[0];
+ $('input[name="q"]')[0].value = query;
+ this.performSearch(query);
+ }
},
- loadIndex: (url) =>
- (document.body.appendChild(document.createElement("script")).src = url),
+ loadIndex : function(url) {
+ $.ajax({type: "GET", url: url, data: null,
+ dataType: "script", cache: true,
+ complete: function(jqxhr, textstatus) {
+ if (textstatus != "success") {
+ document.getElementById("searchindexloader").src = url;
+ }
+ }});
+ },
- setIndex: (index) => {
- Search._index = index;
- if (Search._queued_query !== null) {
- const query = Search._queued_query;
- Search._queued_query = null;
- Search.query(query);
+ setIndex : function(index) {
+ var q;
+ this._index = index;
+ if ((q = this._queued_query) !== null) {
+ this._queued_query = null;
+ Search.query(q);
}
},
- hasIndex: () => Search._index !== null,
-
- deferQuery: (query) => (Search._queued_query = query),
+ hasIndex : function() {
+ return this._index !== null;
+ },
- stopPulse: () => (Search._pulse_status = -1),
+ deferQuery : function(query) {
+ this._queued_query = query;
+ },
- startPulse: () => {
- if (Search._pulse_status >= 0) return;
+ stopPulse : function() {
+ this._pulse_status = 0;
+ },
- const pulse = () => {
+ startPulse : function() {
+ if (this._pulse_status >= 0)
+ return;
+ function pulse() {
+ var i;
Search._pulse_status = (Search._pulse_status + 1) % 4;
- Search.dots.innerText = ".".repeat(Search._pulse_status);
- if (Search._pulse_status >= 0) window.setTimeout(pulse, 500);
- };
+ var dotString = '';
+ for (i = 0; i < Search._pulse_status; i++)
+ dotString += '.';
+ Search.dots.text(dotString);
+ if (Search._pulse_status > -1)
+ window.setTimeout(pulse, 500);
+ }
pulse();
},
/**
* perform a search for something (or wait until index is loaded)
*/
- performSearch: (query) => {
+ performSearch : function(query) {
// create the required interface elements
- const searchText = document.createElement("h2");
- searchText.textContent = _("Searching");
- const searchSummary = document.createElement("p");
- searchSummary.classList.add("search-summary");
- searchSummary.innerText = "";
- const searchList = document.createElement("ul");
- searchList.classList.add("search");
-
- const out = document.getElementById("search-results");
- Search.title = out.appendChild(searchText);
- Search.dots = Search.title.appendChild(document.createElement("span"));
- Search.status = out.appendChild(searchSummary);
- Search.output = out.appendChild(searchList);
-
- const searchProgress = document.getElementById("search-progress");
- // Some themes don't use the search progress node
- if (searchProgress) {
- searchProgress.innerText = _("Preparing search...");
- }
- Search.startPulse();
+ this.out = $('#search-results');
+ this.title = $('' + _('Searching') + ' ').appendTo(this.out);
+ this.dots = $(' ').appendTo(this.title);
+ this.status = $('
').appendTo(this.out);
+ this.output = $('').appendTo(this.out);
+
+ $('#search-progress').text(_('Preparing search...'));
+ this.startPulse();
// index already loaded, the browser was quick!
- if (Search.hasIndex()) Search.query(query);
- else Search.deferQuery(query);
+ if (this.hasIndex())
+ this.query(query);
+ else
+ this.deferQuery(query);
},
/**
* execute search (requires search index to be loaded)
*/
- query: (query) => {
- // stem the search terms and add them to the correct list
- const stemmer = new Stemmer();
- const searchTerms = new Set();
- const excludedTerms = new Set();
- const highlightTerms = new Set();
- const objectTerms = new Set(splitQuery(query.toLowerCase().trim()));
- splitQuery(query.trim()).forEach((queryTerm) => {
- const queryTermLower = queryTerm.toLowerCase();
-
- // maybe skip this "word"
- // stopwords array is from language_data.js
- if (
- stopwords.indexOf(queryTermLower) !== -1 ||
- queryTerm.match(/^\d+$/)
- )
- return;
+ query : function(query) {
+ var i;
+
+ // stem the searchterms and add them to the correct list
+ var stemmer = new Stemmer();
+ var searchterms = [];
+ var excluded = [];
+ var hlterms = [];
+ var tmp = splitQuery(query);
+ var objectterms = [];
+ for (i = 0; i < tmp.length; i++) {
+ if (tmp[i] !== "") {
+ objectterms.push(tmp[i].toLowerCase());
+ }
+ if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i] === "") {
+ // skip this "word"
+ continue;
+ }
// stem the word
- let word = stemmer.stemWord(queryTermLower);
+ var word = stemmer.stemWord(tmp[i].toLowerCase());
+ // prevent stemmer from cutting word smaller than two chars
+ if(word.length < 3 && tmp[i].length >= 3) {
+ word = tmp[i];
+ }
+ var toAppend;
// select the correct list
- if (word[0] === "-") excludedTerms.add(word.substr(1));
+ if (word[0] == '-') {
+ toAppend = excluded;
+ word = word.substr(1);
+ }
else {
- searchTerms.add(word);
- highlightTerms.add(queryTermLower);
+ toAppend = searchterms;
+ hlterms.push(tmp[i].toLowerCase());
}
- });
+ // only add if not already in the list
+ if (!$u.contains(toAppend, word))
+ toAppend.push(word);
+ }
+ var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
- // console.debug("SEARCH: searching for:");
- // console.info("required: ", [...searchTerms]);
- // console.info("excluded: ", [...excludedTerms]);
+ // console.debug('SEARCH: searching for:');
+ // console.info('required: ', searchterms);
+ // console.info('excluded: ', excluded);
+
+ // prepare search
+ var terms = this._index.terms;
+ var titleterms = this._index.titleterms;
- // array of [docname, title, anchor, descr, score, filename]
- let results = [];
- _removeChildren(document.getElementById("search-progress"));
+ // array of [filename, title, anchor, descr, score]
+ var results = [];
+ $('#search-progress').empty();
// lookup as object
- objectTerms.forEach((term) =>
- results.push(...Search.performObjectSearch(term, objectTerms))
- );
+ for (i = 0; i < objectterms.length; i++) {
+ var others = [].concat(objectterms.slice(0, i),
+ objectterms.slice(i+1, objectterms.length));
+ results = results.concat(this.performObjectSearch(objectterms[i], others));
+ }
// lookup as search terms in fulltext
- results.push(...Search.performTermsSearch(searchTerms, excludedTerms));
+ results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms));
// let the scorer override scores with a custom scoring function
- if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item)));
+ if (Scorer.score) {
+ for (i = 0; i < results.length; i++)
+ results[i][4] = Scorer.score(results[i]);
+ }
// now sort the results by score (in opposite order of appearance, since the
// display function below uses pop() to retrieve items) and then
// alphabetically
- results.sort((a, b) => {
- const leftScore = a[4];
- const rightScore = b[4];
- if (leftScore === rightScore) {
+ results.sort(function(a, b) {
+ var left = a[4];
+ var right = b[4];
+ if (left > right) {
+ return 1;
+ } else if (left < right) {
+ return -1;
+ } else {
// same score: sort alphabetically
- const leftTitle = a[1].toLowerCase();
- const rightTitle = b[1].toLowerCase();
- if (leftTitle === rightTitle) return 0;
- return leftTitle > rightTitle ? -1 : 1; // inverted is intentional
+ left = a[1].toLowerCase();
+ right = b[1].toLowerCase();
+ return (left > right) ? -1 : ((left < right) ? 1 : 0);
}
- return leftScore > rightScore ? 1 : -1;
});
- // remove duplicate search results
- // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept
- let seen = new Set();
- results = results.reverse().reduce((acc, result) => {
- let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(',');
- if (!seen.has(resultStr)) {
- acc.push(result);
- seen.add(resultStr);
- }
- return acc;
- }, []);
-
- results = results.reverse();
-
// for debugging
//Search.lastresults = results.slice(); // a copy
- // console.info("search results:", Search.lastresults);
+ //console.info('search results:', Search.lastresults);
// print the results
- _displayNextItem(results, results.length, highlightTerms, searchTerms);
+ var resultCount = results.length;
+ function displayNextItem() {
+ // results left, load the summary and display it
+ if (results.length) {
+ var item = results.pop();
+ var listItem = $(' ');
+ var requestUrl = "";
+ var linkUrl = "";
+ if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
+ // dirhtml builder
+ var dirname = item[0] + '/';
+ if (dirname.match(/\/index\/$/)) {
+ dirname = dirname.substring(0, dirname.length-6);
+ } else if (dirname == 'index/') {
+ dirname = '';
+ }
+ requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;
+ linkUrl = requestUrl;
+
+ } else {
+ // normal html builders
+ requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX;
+ linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX;
+ }
+ listItem.append($(' ').attr('href',
+ linkUrl +
+ highlightstring + item[2]).html(item[1]));
+ if (item[3]) {
+ listItem.append($(' (' + item[3] + ') '));
+ Search.output.append(listItem);
+ setTimeout(function() {
+ displayNextItem();
+ }, 5);
+ } else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
+ $.ajax({url: requestUrl,
+ dataType: "text",
+ complete: function(jqxhr, textstatus) {
+ var data = jqxhr.responseText;
+ if (data !== '' && data !== undefined) {
+ var summary = Search.makeSearchSummary(data, searchterms, hlterms);
+ if (summary) {
+ listItem.append(summary);
+ }
+ }
+ Search.output.append(listItem);
+ setTimeout(function() {
+ displayNextItem();
+ }, 5);
+ }});
+ } else {
+ // no source available, just display title
+ Search.output.append(listItem);
+ setTimeout(function() {
+ displayNextItem();
+ }, 5);
+ }
+ }
+ // search finished, update title and status message
+ else {
+ Search.stopPulse();
+ Search.title.text(_('Search Results'));
+ if (!resultCount)
+ Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
+ else
+ Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
+ Search.status.fadeIn(500);
+ }
+ }
+ displayNextItem();
},
/**
* search for object names
*/
- performObjectSearch: (object, objectTerms) => {
- const filenames = Search._index.filenames;
- const docNames = Search._index.docnames;
- const objects = Search._index.objects;
- const objNames = Search._index.objnames;
- const titles = Search._index.titles;
-
- const results = [];
-
- const objectSearchCallback = (prefix, match) => {
- const name = match[4]
- const fullname = (prefix ? prefix + "." : "") + name;
- const fullnameLower = fullname.toLowerCase();
- if (fullnameLower.indexOf(object) < 0) return;
-
- let score = 0;
- const parts = fullnameLower.split(".");
-
- // check for different match types: exact matches of full name or
- // "last name" (i.e. last dotted part)
- if (fullnameLower === object || parts.slice(-1)[0] === object)
- score += Scorer.objNameMatch;
- else if (parts.slice(-1)[0].indexOf(object) > -1)
- score += Scorer.objPartialMatch; // matches in last name
-
- const objName = objNames[match[1]][2];
- const title = titles[match[0]];
-
- // If more than one term searched for, we require other words to be
- // found in the name/title/description
- const otherTerms = new Set(objectTerms);
- otherTerms.delete(object);
- if (otherTerms.size > 0) {
- const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase();
- if (
- [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0)
- )
- return;
+ performObjectSearch : function(object, otherterms) {
+ var filenames = this._index.filenames;
+ var docnames = this._index.docnames;
+ var objects = this._index.objects;
+ var objnames = this._index.objnames;
+ var titles = this._index.titles;
+
+ var i;
+ var results = [];
+
+ for (var prefix in objects) {
+ for (var iMatch = 0; iMatch != objects[prefix].length; ++iMatch) {
+ var match = objects[prefix][iMatch];
+ var name = match[4];
+ var fullname = (prefix ? prefix + '.' : '') + name;
+ var fullnameLower = fullname.toLowerCase()
+ if (fullnameLower.indexOf(object) > -1) {
+ var score = 0;
+ var parts = fullnameLower.split('.');
+ // check for different match types: exact matches of full name or
+ // "last name" (i.e. last dotted part)
+ if (fullnameLower == object || parts[parts.length - 1] == object) {
+ score += Scorer.objNameMatch;
+ // matches in last name
+ } else if (parts[parts.length - 1].indexOf(object) > -1) {
+ score += Scorer.objPartialMatch;
+ }
+ var objname = objnames[match[1]][2];
+ var title = titles[match[0]];
+ // If more than one term searched for, we require other words to be
+ // found in the name/title/description
+ if (otherterms.length > 0) {
+ var haystack = (prefix + ' ' + name + ' ' +
+ objname + ' ' + title).toLowerCase();
+ var allfound = true;
+ for (i = 0; i < otherterms.length; i++) {
+ if (haystack.indexOf(otherterms[i]) == -1) {
+ allfound = false;
+ break;
+ }
+ }
+ if (!allfound) {
+ continue;
+ }
+ }
+ var descr = objname + _(', in ') + title;
+
+ var anchor = match[3];
+ if (anchor === '')
+ anchor = fullname;
+ else if (anchor == '-')
+ anchor = objnames[match[1]][1] + '-' + fullname;
+ // add custom score for some objects according to scorer
+ if (Scorer.objPrio.hasOwnProperty(match[2])) {
+ score += Scorer.objPrio[match[2]];
+ } else {
+ score += Scorer.objPrioDefault;
+ }
+ results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]);
+ }
}
+ }
- let anchor = match[3];
- if (anchor === "") anchor = fullname;
- else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname;
-
- const descr = objName + _(", in ") + title;
-
- // add custom score for some objects according to scorer
- if (Scorer.objPrio.hasOwnProperty(match[2]))
- score += Scorer.objPrio[match[2]];
- else score += Scorer.objPrioDefault;
-
- results.push([
- docNames[match[0]],
- fullname,
- "#" + anchor,
- descr,
- score,
- filenames[match[0]],
- ]);
- };
- Object.keys(objects).forEach((prefix) =>
- objects[prefix].forEach((array) =>
- objectSearchCallback(prefix, array)
- )
- );
return results;
},
+ /**
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
+ */
+ escapeRegExp : function(string) {
+ return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
+ },
+
/**
* search for full-text terms in the index
*/
- performTermsSearch: (searchTerms, excludedTerms) => {
- // prepare search
- const terms = Search._index.terms;
- const titleTerms = Search._index.titleterms;
- const docNames = Search._index.docnames;
- const filenames = Search._index.filenames;
- const titles = Search._index.titles;
+ performTermsSearch : function(searchterms, excluded, terms, titleterms) {
+ var docnames = this._index.docnames;
+ var filenames = this._index.filenames;
+ var titles = this._index.titles;
- const scoreMap = new Map();
- const fileMap = new Map();
+ var i, j, file;
+ var fileMap = {};
+ var scoreMap = {};
+ var results = [];
// perform the search on the required terms
- searchTerms.forEach((word) => {
- const files = [];
- const arr = [
- { files: terms[word], score: Scorer.term },
- { files: titleTerms[word], score: Scorer.title },
+ for (i = 0; i < searchterms.length; i++) {
+ var word = searchterms[i];
+ var files = [];
+ var _o = [
+ {files: terms[word], score: Scorer.term},
+ {files: titleterms[word], score: Scorer.title}
];
// add support for partial matches
if (word.length > 2) {
- const escapedWord = _escapeRegExp(word);
- Object.keys(terms).forEach((term) => {
- if (term.match(escapedWord) && !terms[word])
- arr.push({ files: terms[term], score: Scorer.partialTerm });
- });
- Object.keys(titleTerms).forEach((term) => {
- if (term.match(escapedWord) && !titleTerms[word])
- arr.push({ files: titleTerms[word], score: Scorer.partialTitle });
- });
+ var word_regex = this.escapeRegExp(word);
+ for (var w in terms) {
+ if (w.match(word_regex) && !terms[word]) {
+ _o.push({files: terms[w], score: Scorer.partialTerm})
+ }
+ }
+ for (var w in titleterms) {
+ if (w.match(word_regex) && !titleterms[word]) {
+ _o.push({files: titleterms[w], score: Scorer.partialTitle})
+ }
+ }
}
// no match but word was a required one
- if (arr.every((record) => record.files === undefined)) return;
-
+ if ($u.every(_o, function(o){return o.files === undefined;})) {
+ break;
+ }
// found search word in contents
- arr.forEach((record) => {
- if (record.files === undefined) return;
-
- let recordFiles = record.files;
- if (recordFiles.length === undefined) recordFiles = [recordFiles];
- files.push(...recordFiles);
-
- // set score for the word in each file
- recordFiles.forEach((file) => {
- if (!scoreMap.has(file)) scoreMap.set(file, {});
- scoreMap.get(file)[word] = record.score;
- });
+ $u.each(_o, function(o) {
+ var _files = o.files;
+ if (_files === undefined)
+ return
+
+ if (_files.length === undefined)
+ _files = [_files];
+ files = files.concat(_files);
+
+ // set score for the word in each file to Scorer.term
+ for (j = 0; j < _files.length; j++) {
+ file = _files[j];
+ if (!(file in scoreMap))
+ scoreMap[file] = {};
+ scoreMap[file][word] = o.score;
+ }
});
// create the mapping
- files.forEach((file) => {
- if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1)
- fileMap.get(file).push(word);
- else fileMap.set(file, [word]);
- });
- });
+ for (j = 0; j < files.length; j++) {
+ file = files[j];
+ if (file in fileMap && fileMap[file].indexOf(word) === -1)
+ fileMap[file].push(word);
+ else
+ fileMap[file] = [word];
+ }
+ }
// now check if the files don't contain excluded terms
- const results = [];
- for (const [file, wordList] of fileMap) {
- // check if all requirements are matched
+ for (file in fileMap) {
+ var valid = true;
- // as search terms with length < 3 are discarded
- const filteredTermCount = [...searchTerms].filter(
- (term) => term.length > 2
- ).length;
+ // check if all requirements are matched
+ var filteredTermCount = // as search terms with length < 3 are discarded: ignore
+ searchterms.filter(function(term){return term.length > 2}).length
if (
- wordList.length !== searchTerms.size &&
- wordList.length !== filteredTermCount
- )
- continue;
+ fileMap[file].length != searchterms.length &&
+ fileMap[file].length != filteredTermCount
+ ) continue;
// ensure that none of the excluded terms is in the search result
- if (
- [...excludedTerms].some(
- (term) =>
- terms[term] === file ||
- titleTerms[term] === file ||
- (terms[term] || []).includes(file) ||
- (titleTerms[term] || []).includes(file)
- )
- )
- break;
+ for (i = 0; i < excluded.length; i++) {
+ if (terms[excluded[i]] == file ||
+ titleterms[excluded[i]] == file ||
+ $u.contains(terms[excluded[i]] || [], file) ||
+ $u.contains(titleterms[excluded[i]] || [], file)) {
+ valid = false;
+ break;
+ }
+ }
- // select one (max) score for the file.
- const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
- // add result to the result list
- results.push([
- docNames[file],
- titles[file],
- "",
- null,
- score,
- filenames[file],
- ]);
+ // if we have still a valid result we can add it to the result list
+ if (valid) {
+ // select one (max) score for the file.
+ // for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
+ var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
+ results.push([docnames[file], titles[file], '', null, score, filenames[file]]);
+ }
}
return results;
},
@@ -499,33 +496,34 @@ const Search = {
/**
* helper function to return a node containing the
* search summary for a given text. keywords is a list
- * of stemmed words, highlightWords is the list of normal, unstemmed
+ * of stemmed words, hlwords is the list of normal, unstemmed
* words. the first one is used to find the occurrence, the
* latter for highlighting it.
*/
- makeSearchSummary: (htmlText, keywords, highlightWords) => {
- const text = Search.htmlToText(htmlText).toLowerCase();
- if (text === "") return null;
-
- const actualStartPosition = [...keywords]
- .map((k) => text.indexOf(k.toLowerCase()))
- .filter((i) => i > -1)
- .slice(-1)[0];
- const startWithContext = Math.max(actualStartPosition - 120, 0);
-
- const top = startWithContext === 0 ? "" : "...";
- const tail = startWithContext + 240 < text.length ? "..." : "";
-
- let summary = document.createElement("div");
- summary.classList.add("context");
- summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
-
- highlightWords.forEach((highlightWord) =>
- _highlightText(summary, highlightWord, "highlighted")
- );
-
- return summary;
- },
+ makeSearchSummary : function(htmlText, keywords, hlwords) {
+ var text = Search.htmlToText(htmlText);
+ if (text == "") {
+ return null;
+ }
+ var textLower = text.toLowerCase();
+ var start = 0;
+ $.each(keywords, function() {
+ var i = textLower.indexOf(this.toLowerCase());
+ if (i > -1)
+ start = i;
+ });
+ start = Math.max(start - 120, 0);
+ var excerpt = ((start > 0) ? '...' : '') +
+ $.trim(text.substr(start, 240)) +
+ ((start + 240 - text.length) ? '...' : '');
+ var rv = $('
').text(excerpt);
+ $.each(hlwords, function() {
+ rv = rv.highlightText(this, 'highlighted');
+ });
+ return rv;
+ }
};
-_ready(Search.init);
+$(document).ready(function() {
+ Search.init();
+});
diff --git a/docs/build/html/docDIAL.html b/docs/build/html/docDIAL.html
index 763d4b1e7..328f8f950 100644
--- a/docs/build/html/docDIAL.html
+++ b/docs/build/html/docDIAL.html
@@ -1,10 +1,10 @@
-
+
-
+
@@ -55,7 +55,6 @@
-
@@ -377,13 +376,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -429,13 +421,13 @@
-Trainer DIAL
+Trainer DIAL
-Domain Invariant Adversarial Learning
+Domain Invariant Adversarial Learning
The algorithm introduced in https://arxiv.org/pdf/2104.00322.pdf uses adversarial learning to tackle the task of domain generalization. Therefore, the source domain is the natural dataset, while the target domain is generated using adversarial attack on the source domain.
-generating the adversarial domain
+generating the adversarial domain
The generation of adversary images is demonstrated in figure 1.
The task is to find an adversary image \(x'\) to the natural image \(x\) with \(||x- x'||\) small, such that the output of a classification network \(\phi\) fulfills \(||\phi(x) - \phi(x')||\) big. In the example in figure 1 you can for example see, that the difference between the left and the right image of the panda is unobservable, but the classifier does still classify them differently.
In Domainlab the adversary images are created starting from a random perturbation of the natural image \(x'_0 = x + \sigma \tilde{x}~\) , \(\tilde{x} \sim \mathcal{N}(0, 1)\) and using \(n\) steps in a gradient descend with step size \(\tau\) to maximize \(||\phi(x) - \phi(x')||\) . In general machine learning, the generation of adversary images is used during the training process to make networks more robust to adversarial attacks.
@@ -445,7 +437,7 @@ generating the adversarial domain
-network structure
+network structure
The network consists of three parts. At first a feature extractor, which extracts the main characteristics of the images. This features are then used as the input to a label classifier and a domain classifier.
During training the network is optimized to a have low error on the classification task, while ensuring that the internal representation (output of the feature extractor) cannot discriminate between the natural and adversarial domain. This goal can be archived by using a special loss function in combination with a gradient reversal layer.
@@ -454,7 +446,7 @@
network structureSphinx 5.0.2.
+ Sphinx 4.4.0.
and
Material for
Sphinx
diff --git a/docs/build/html/docFishr.html b/docs/build/html/docFishr.html
index fbeedcb71..e12d5047d 100644
--- a/docs/build/html/docFishr.html
+++ b/docs/build/html/docFishr.html
@@ -1,10 +1,10 @@
-
+
-
+
@@ -55,7 +55,6 @@
-
@@ -352,13 +351,6 @@
Causal IRL
-
-
-
-
- Invariant Causal Mechanisms through Distribution Matching
-
-
@@ -400,9 +392,9 @@
-Trainer Fishr
+Trainer Fishr
-Invariant Gradient Variances for Out-of-distribution Generalization
+Invariant Gradient Variances for Out-of-distribution Generalization
The goal of the Fishr regularization technique is locally aligning the domain-level loss landscapes
around the final weights, finding a minimizer around which the inconsistencies between
the domain-level loss landscapes are as small as possible.
@@ -415,7 +407,7 @@
Inv
Invariant gradient variances for out-of-distribution generalization")
-Quantifying inconsistency between domains
+Quantifying inconsistency between domains
Intuitively, two domains are locally inconsistent around a minimizer, if a small
perturbation of the minimizer highly affects its optimality in one domain, but only
minimally affects its optimality in the other domain. Under certain assumptions, most importantly
@@ -435,7 +427,7 @@
Quantifying inconsistency bet
domain-level Hessians, matching the variances across domains.
-Matching the Variances during training
+Matching the Variances during training
Let \(\mathcal{E}\) be the space of all training domains, and let \(\mathcal{R}_e(\theta)\) be the ERM
objective. Fishr minimizes the following objective function during training:
@@ -452,7 +444,7 @@
Matching the Variances during tr
\(v = \frac{1}{|\mathcal{E}|}\sum_{e\in\mathcal{E}} v_e\) .
-Implementation
+Implementation
The variance of the gradients within each domain can be computed with the
BACKPACK package (see: Dangel, Felix, Frederik Kunstner, and Philipp Hennig.
“Backpack: Packing more into backprop.” https://arxiv.org/abs/1912.10985 ).
@@ -463,7 +455,7 @@
Implementation