{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/domain-adaptation-for-time-series-under","title":"Domain Adaptation for Time Series Under Feature and Label Shifts","arxiv_id":"2302.03133","date":"2023-02-06","proceeding":null,"authors":["Huan He","Owen Queen","Teddy Koker","Consuelo Cuevas","Theodoros Tsiligkaridis","Marinka Zitnik"],"abstract":"Unsupervised domain adaptation (UDA) enables the transfer of models trained on source domains to unlabeled target domains. However, transferring complex time series models presents challenges due to the dynamic temporal structure variations across domains. This leads to feature shifts in the time and frequency representations. Additionally, the label distributions of tasks in the source and target domains can differ significantly, posing difficulties in addressing label shifts and recognizing labels unique to the target domain. Effectively transferring complex time series models remains a formidable problem. We present Raincoat, the first model for both closed-set and universal domain adaptation on complex time series. Raincoat addresses feature and label shifts by considering both temporal and frequency features, aligning them across domains, and correcting for misalignments to facilitate the detection of private labels. Additionally, Raincoat improves transferability by identifying label shifts in target domains. Our experiments with 5 datasets and 13 state-of-the-art UDA methods demonstrate that Raincoat can improve transfer learning performance by up to 16.33% and can handle both closed-set and universal domain adaptation.","url_abs":"https://arxiv.org/abs/2302.03133v2","url_pdf":"https://arxiv.org/pdf/2302.03133v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"domain-adaptation-for-time-series-under","repo_url":"https://github.com/mims-harvard/raincoat","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"},{"task_slug":"universal-domain-adaptation","task_name":"Universal Domain Adaptation"},{"task_slug":"unsupervised-domain-adaptation","task_name":"Unsupervised Domain Adaptation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2302.03133","atlas_url":"https://app.syntology.ai/?focus=2302.03133","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2302.03133"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/mims-harvard/Raincoat","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mims-harvard/raincoat","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":12,"unverified":5},"by_repo_kind":{"official":{"samples":17,"ran":12,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"0cb7cfb326eed8be","entry":"EntropyLoss","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/loss.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/loss.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0cb7cfb326eed8be"}},{"code_sha256_prefix":"0e947636863e658a","entry":"compl_mul1d","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/sinkhorn_vis.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/sinkhorn_vis.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0e947636863e658a"}},{"code_sha256_prefix":"452e418f86055a6e","entry":"data_generator","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"dataloader/dataloader.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/dataloader/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"452e418f86055a6e"}},{"code_sha256_prefix":"e1ca084ee48a2eed","entry":"few_shot_data_generator","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"dataloader/dataloader.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/dataloader/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1ca084ee48a2eed"}},{"code_sha256_prefix":"576f86eb9d3d208b","entry":"generator_percentage_of_data","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"dataloader/dataloader.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/dataloader/dataloader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"576f86eb9d3d208b"}},{"code_sha256_prefix":"20778da824d806b5","entry":"get_dev_value","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"algorithms/utils.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/algorithms/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"20778da824d806b5"}},{"code_sha256_prefix":"e285d60da7bd42cc","entry":"get_iwcv_value","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"algorithms/utils.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/algorithms/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e285d60da7bd42cc"}},{"code_sha256_prefix":"17fb0ac3baafb100","entry":"jitter","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/augmentations.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/augmentations.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"17fb0ac3baafb100"}},{"code_sha256_prefix":"62e430d298d27ab3","entry":"open_entropy","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/loss.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/loss.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62e430d298d27ab3"}},{"code_sha256_prefix":"dff3864912382b7a","entry":"ova_loss","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/loss.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/loss.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dff3864912382b7a"}},{"code_sha256_prefix":"62ae42ac3fdc85c6","entry":"scaling","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/augmentations.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/augmentations.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62ae42ac3fdc85c6"}},{"code_sha256_prefix":"7c583e1ae26f9263","entry":"starting_logs","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"algorithms/utils.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/algorithms/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c583e1ae26f9263"}},{"code_sha256_prefix":"b0bc80b1655a6802","entry":"get_algorithm_class","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"algorithms/algorithms.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/algorithms/algorithms.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b0bc80b1655a6802"}},{"code_sha256_prefix":"f8ac075efb28ded9","entry":"get_backbone_class","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8ac075efb28ded9"}},{"code_sha256_prefix":"8dadd34c7426858e","entry":"get_dataset_class","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"configs/data_model_configs.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/configs/data_model_configs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8dadd34c7426858e"}},{"code_sha256_prefix":"87db44cd0a18316c","entry":"get_hparams_class","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"configs/hparams.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/configs/hparams.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"87db44cd0a18316c"}},{"code_sha256_prefix":"d09725912eaa13b1","entry":"permutation","repo":"mims-harvard/Raincoat","repo_kind":"official","path":"models/augmentations.py","file_url":"https://github.com/mims-harvard/Raincoat/blob/HEAD/models/augmentations.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d09725912eaa13b1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}