{"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/accounting-for-informative-sampling-when","title":"Accounting For Informative Sampling When Learning to Forecast Treatment Outcomes Over Time","arxiv_id":"2306.04255","date":"2023-06-07","proceeding":null,"authors":["Toon Vanderschueren","Alicia Curth","Wouter Verbeke","Mihaela van der Schaar"],"abstract":"Machine learning (ML) holds great potential for accurately forecasting treatment outcomes over time, which could ultimately enable the adoption of more individualized treatment strategies in many practical applications. However, a significant challenge that has been largely overlooked by the ML literature on this topic is the presence of informative sampling in observational data. When instances are observed irregularly over time, sampling times are typically not random, but rather informative -- depending on the instance's characteristics, past outcomes, and administered treatments. In this work, we formalize informative sampling as a covariate shift problem and show that it can prohibit accurate estimation of treatment outcomes if not properly accounted for. To overcome this challenge, we present a general framework for learning treatment outcomes in the presence of informative sampling using inverse intensity-weighting, and propose a novel method, TESAR-CDE, that instantiates this framework using Neural CDEs. Using a simulation environment based on a clinical use case, we demonstrate the effectiveness of our approach in learning under informative sampling.","url_abs":"https://arxiv.org/abs/2306.04255v1","url_pdf":"https://arxiv.org/pdf/2306.04255v1.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":"accounting-for-informative-sampling-when","repo_url":"https://github.com/toonvds/tesar-cde","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":null,"method_name":"Quickbooks"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.04255","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.04255"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/toonvds/tesar-cde","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"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":"49da0ce0fcbb45b8","entry":"calc_diameter","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/cancer_simulation.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/cancer_simulation.py","link_basis":"first_harvest_node","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":"49da0ce0fcbb45b8"}},{"code_sha256_prefix":"b3ddbda44f74ad61","entry":"calc_volume","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/cancer_simulation.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/cancer_simulation.py","link_basis":"first_harvest_node","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":"b3ddbda44f74ad61"}},{"code_sha256_prefix":"c333545f546b687b","entry":"compute_cross_entropy_loss","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/losses.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/losses.py","link_basis":"first_harvest_node","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":"c333545f546b687b"}},{"code_sha256_prefix":"60fc98f2701ea88d","entry":"data_to_torch_tensor","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/data_utils.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/data_utils.py","link_basis":"first_harvest_node","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":"60fc98f2701ea88d"}},{"code_sha256_prefix":"0001acc4d96a96b7","entry":"enable_dropout","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/training_tools.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/training_tools.py","link_basis":"first_harvest_node","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":"0001acc4d96a96b7"}},{"code_sha256_prefix":"95c728dafae2f2ff","entry":"get_confounding_params","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/cancer_simulation.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/cancer_simulation.py","link_basis":"first_harvest_node","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":"95c728dafae2f2ff"}},{"code_sha256_prefix":"5ae2afabd4edc746","entry":"get_processed_data","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/data_utils.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/data_utils.py","link_basis":"first_harvest_node","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":"5ae2afabd4edc746"}},{"code_sha256_prefix":"58188f1c56c152d6","entry":"mse","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/losses.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/losses.py","link_basis":"first_harvest_node","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":"58188f1c56c152d6"}},{"code_sha256_prefix":"16a1b88ddd38609a","entry":"process_data","repo":"toonvds/tesar-cde","repo_kind":"official","path":"src/utils/data_utils.py","file_url":"https://github.com/toonvds/tesar-cde/blob/HEAD/src/utils/data_utils.py","link_basis":"first_harvest_node","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":"16a1b88ddd38609a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}