{"id":17195789,"url":"https://github.com/kenns29/causenet","last_synced_at":"2025-07-04T17:12:06.726Z","repository":{"id":83118862,"uuid":"137818619","full_name":"kenns29/causenet","owner":"kenns29","description":"A causality visualization tool","archived":false,"fork":false,"pushed_at":"2019-07-03T16:20:41.000Z","size":1775,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"spatio-temporal","last_synced_at":"2025-03-25T08:13:50.316Z","etag":null,"topics":["causality","visual-analytics","visualization"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenns29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-18T23:52:00.000Z","updated_at":"2022-02-18T22:55:33.000Z","dependencies_parsed_at":"2023-04-10T22:38:02.740Z","dependency_job_id":null,"html_url":"https://github.com/kenns29/causenet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenns29/causenet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenns29%2Fcausenet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenns29%2Fcausenet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenns29%2Fcausenet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenns29%2Fcausenet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenns29","download_url":"https://codeload.github.com/kenns29/causenet/tar.gz/refs/heads/spatio-temporal","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenns29%2Fcausenet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263586002,"owners_count":23484494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["causality","visual-analytics","visualization"],"created_at":"2024-10-15T01:51:29.538Z","updated_at":"2025-07-04T17:12:06.708Z","avatar_url":"https://github.com/kenns29.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cause Net\n\n## Backend\n\n### Install\n\nMake sure python version 3.6.5 is installed.\n\n#### Setup virtual environment and install dependencies\n\nFor Mac users, go to the `/backend` directory and do\n\n```bash\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\nFor windows users, go to the `/backend` directory and do\n\n```bash\npython -m venv venv\ncd venv/bin\nactivate.bat\ncd ../../\npip install -r requirements.txt\n```\n\n#### Install the C extension package\n\nUnder the virtual environment, go to the `backend/bn_edge_weights` directory and do\n\n```bash\npython setup.py install\n```\n\n#### Pre-generate the data\n\nCurrently the data loading process is hard coded. You need to download the data from the [google drive folder](https://drive.google.com/drive/folders/1ZokWnnJ_i91MmtZ2z3uog4s02XAKe-Q6?usp=sharing). Copy the `/metadata` folder and place it in the `/backend` directory, then do\n\n```bash\npython generate_open_source_data.py\n```\n\nThis script preprocesses the data (filtering and converting numerical variables to categorical ones), then calculates pairwise distances for all the features and performs hierarchical clustering. The resulting data will be placed in the `/data` directory. A config file will also be generated under the `/data` directory (`/data/config.json`) that has the following format:\n\n```js\n{\n  \"test_0\": {\n    \"raw_data_file\": \"test_0_raw.bin\",\n    \"data_file\": \"test_0.bin\",\n    \"base_avg_data_file\": \"test_0_base_avg.bin\",\n    \"pdist_file\": \"test_0_pdist.bin\",\n    \"clustering_file\": \"test_0_clustering.bin\"\n  },\n  \"fao_fused_spatio_temporal_cut_10\": {\n    \"raw_data_file\": \"fao_fused_spatio_temporal_cut_10_raw.bin\",\n    \"data_file\": \"fao_fused_spatio_temporal_cut_10.bin\",\n    \"base_avg_data_file\": \"fao_fused_spatio_temporal_cut_10_base_avg.bin\",\n    \"pdist_file\": \"fao_fused_spatio_temporal_cut_10_pdsit.bin\",\n    \"clustering_file\": \"fao_fused_spatio_temporal_cut_10_clustering.bin\"\n  }\n}\n```\n\nThis config file is to help the backend keep track of the existing datasets and their corresponding files.\n\n### Run\n\n```bash\npython manage.py runserver\n```\n\n## Frontend\n\n### Install\n\nClone the repository from [sortable-matrix](https://github.com/kenns29/sortable-matrix), and place the repo folder under **the same parent directory** of the `/causenet` project folder. Follow the instructions in [sortable-matrix](https://github.com/kenns29/sortable-matrix) to install it.\n\nAfterwards, go to the `/frontend` directory and do\n\n```bash\nnpm install\n```\n\n### Run\n\n```bash\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenns29%2Fcausenet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenns29%2Fcausenet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenns29%2Fcausenet/lists"}