{"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/testing-directed-acyclic-graph-via-structural","title":"Testing Directed Acyclic Graph via Structural, Supervised and Generative Adversarial Learning","arxiv_id":"2106.01474","date":"2021-06-02","proceeding":null,"authors":["Chengchun Shi","Yunzhe Zhou","Lexin Li"],"abstract":"In this article, we propose a new hypothesis testing method for directed acyclic graph (DAG). While there is a rich class of DAG estimation methods, there is a relative paucity of DAG inference solutions. Moreover, the existing methods often impose some specific model structures such as linear models or additive models, and assume independent data observations. Our proposed test instead allows the associations among the random variables to be nonlinear and the data to be time-dependent. We build the test based on some highly flexible neural networks learners. We establish the asymptotic guarantees of the test, while allowing either the number of subjects or the number of time points for each subject to diverge to infinity. We demonstrate the efficacy of the test through simulations and a brain connectivity network analysis.","url_abs":"https://arxiv.org/abs/2106.01474v2","url_pdf":"https://arxiv.org/pdf/2106.01474v2.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":"testing-directed-acyclic-graph-via-structural","repo_url":"https://github.com/yunzhe-zhou/sugar","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"additive-models","task_name":"Additive models"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.01474","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.01474"}},"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/yunzhe-zhou/sugar","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"ran_fixture":1,"ran_draft_wrong":1,"unverified":16},"by_repo_kind":{"official":{"samples":19,"ran":3,"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":"786b48473c9f4aec","entry":"is_dag","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/utils.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"786b48473c9f4aec"}},{"code_sha256_prefix":"2a4605e98eb5ad15","entry":"simulate_parameter","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/utils.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a4605e98eb5ad15"}},{"code_sha256_prefix":"c60cc034e8957e26","entry":"squared_loss","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/nonlinear_learning.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/nonlinear_learning.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c60cc034e8957e26"}},{"code_sha256_prefix":"dcd4088afc50523b","entry":"cal_graph","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/inference.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/inference.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":"dcd4088afc50523b"}},{"code_sha256_prefix":"a35fbfea327c18f8","entry":"cal_pvalue","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/inference.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/inference.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":"a35fbfea327c18f8"}},{"code_sha256_prefix":"c2475dc70e8074ff","entry":"cal_pvalue_real","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/real_infer.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/real_infer.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":"c2475dc70e8074ff"}},{"code_sha256_prefix":"26ffc0d6eabee6c5","entry":"calculate_interaction_graph_real","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/real_infer.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/real_infer.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":"26ffc0d6eabee6c5"}},{"code_sha256_prefix":"58df37e812374105","entry":"condition","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/gan_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/gan_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":"58df37e812374105"}},{"code_sha256_prefix":"17fb6cd086ef2f71","entry":"cost_xy","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/gan_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/gan_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":"17fb6cd086ef2f71"}},{"code_sha256_prefix":"1b4fe9f50c07208f","entry":"generate_W","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/synthetic.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/synthetic.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":"1b4fe9f50c07208f"}},{"code_sha256_prefix":"2af3fa1a257acf4d","entry":"get_edges","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/sim_gen.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/sim_gen.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":"2af3fa1a257acf4d"}},{"code_sha256_prefix":"b44efa1895a3bbe9","entry":"index_to_graph","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/infer_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/infer_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":"b44efa1895a3bbe9"}},{"code_sha256_prefix":"ab74da99a9e8cbc9","entry":"print_real","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/real_infer.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/real_infer.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":"ab74da99a9e8cbc9"}},{"code_sha256_prefix":"535af2319646dd89","entry":"root_relationship","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/infer_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/infer_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":"535af2319646dd89"}},{"code_sha256_prefix":"7be108bf73c0e733","entry":"root_relationship_all","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/infer_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/infer_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":"7be108bf73c0e733"}},{"code_sha256_prefix":"4f680dea088e57d2","entry":"sim_gen","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/sim_gen.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/sim_gen.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":"4f680dea088e57d2"}},{"code_sha256_prefix":"35486488c2030882","entry":"simulate_dag","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/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":"35486488c2030882"}},{"code_sha256_prefix":"43962fca77e3b596","entry":"struct_learn","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/inference.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/inference.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":"43962fca77e3b596"}},{"code_sha256_prefix":"c75aad8da750f62c","entry":"write_to_row","repo":"yunzhe-zhou/sugar","repo_kind":"official","path":"SUGAR/gan_utils.py","file_url":"https://github.com/yunzhe-zhou/sugar/blob/HEAD/SUGAR/gan_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":"c75aad8da750f62c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}