EveryQuery 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. everyquery-0.1.0/.github/actions/setup/action.yaml +28 -0
  2. everyquery-0.1.0/.github/workflows/code-quality-main.yaml +23 -0
  3. everyquery-0.1.0/.github/workflows/code-quality-pr.yaml +34 -0
  4. everyquery-0.1.0/.github/workflows/python-build.yaml +100 -0
  5. everyquery-0.1.0/.github/workflows/tests.yaml +47 -0
  6. everyquery-0.1.0/.gitignore +184 -0
  7. everyquery-0.1.0/.pre-commit-config.yaml +95 -0
  8. everyquery-0.1.0/LICENSE +21 -0
  9. everyquery-0.1.0/PKG-INFO +53 -0
  10. everyquery-0.1.0/README.md +24 -0
  11. everyquery-0.1.0/pyproject.toml +99 -0
  12. everyquery-0.1.0/setup.cfg +4 -0
  13. everyquery-0.1.0/src/EveryQuery.egg-info/PKG-INFO +53 -0
  14. everyquery-0.1.0/src/EveryQuery.egg-info/SOURCES.txt +44 -0
  15. everyquery-0.1.0/src/EveryQuery.egg-info/dependency_links.txt +1 -0
  16. everyquery-0.1.0/src/EveryQuery.egg-info/requires.txt +14 -0
  17. everyquery-0.1.0/src/EveryQuery.egg-info/top_level.txt +1 -0
  18. everyquery-0.1.0/src/every_query/README.md +0 -0
  19. everyquery-0.1.0/src/every_query/__init__.py +0 -0
  20. everyquery-0.1.0/src/every_query/aces_to_eq/aces_to_eq.py +83 -0
  21. everyquery-0.1.0/src/every_query/aces_to_eq/config.yaml +11 -0
  22. everyquery-0.1.0/src/every_query/config.yaml +112 -0
  23. everyquery-0.1.0/src/every_query/dataset.py +233 -0
  24. everyquery-0.1.0/src/every_query/eval.py +107 -0
  25. everyquery-0.1.0/src/every_query/eval_composite.py +98 -0
  26. everyquery-0.1.0/src/every_query/eval_suite/README.md +5 -0
  27. everyquery-0.1.0/src/every_query/eval_suite/conf/eval_composite_config.yaml +20 -0
  28. everyquery-0.1.0/src/every_query/eval_suite/conf/eval_config.yaml +24 -0
  29. everyquery-0.1.0/src/every_query/eval_suite/conf/gen_index_times_config.yaml +19 -0
  30. everyquery-0.1.0/src/every_query/eval_suite/conf/gen_tasks_config.yaml +16 -0
  31. everyquery-0.1.0/src/every_query/eval_suite/conf/get_per_code_from_composite_config.yaml +17 -0
  32. everyquery-0.1.0/src/every_query/eval_suite/gen_index_times.py +73 -0
  33. everyquery-0.1.0/src/every_query/eval_suite/gen_task.py +78 -0
  34. everyquery-0.1.0/src/every_query/lightning_module.py +387 -0
  35. everyquery-0.1.0/src/every_query/lit_datamodule.py +6 -0
  36. everyquery-0.1.0/src/every_query/model.py +472 -0
  37. everyquery-0.1.0/src/every_query/process_composite/get_per_code_from_composite.py +59 -0
  38. everyquery-0.1.0/src/every_query/process_composite/process_composite.py +102 -0
  39. everyquery-0.1.0/src/every_query/process_composite/process_composite_config.yaml +8 -0
  40. everyquery-0.1.0/src/every_query/sample_codes/sample_eval_codes.py +38 -0
  41. everyquery-0.1.0/src/every_query/sample_codes/sample_train_codes.py +80 -0
  42. everyquery-0.1.0/src/every_query/tasks.py +130 -0
  43. everyquery-0.1.0/src/every_query/train.py +201 -0
  44. everyquery-0.1.0/src/every_query/utils/__init__.py +0 -0
  45. everyquery-0.1.0/src/every_query/utils/codes.py +13 -0
  46. everyquery-0.1.0/uv.lock +1976 -0
@@ -0,0 +1,28 @@
1
+ name: Setup Package
2
+ description: This workflow sets up the package for other workflows.
3
+ inputs:
4
+ python-version:
5
+ description: The Python version to use for the setup.
6
+ required: true
7
+ default: "3.11"
8
+ group:
9
+ description: The dependency group to install (benchmarks, dev, docs)
10
+ required: false
11
+ default: "dev"
12
+ runs:
13
+ using: "composite"
14
+ steps:
15
+ - uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "${{ inputs.python-version }}"
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v6
21
+ with:
22
+ enable-cache: true
23
+ cache-suffix: "py${{ inputs.python-version }}"
24
+
25
+ - name: Install packages
26
+ shell: bash
27
+ run: |
28
+ uv sync --locked --group ${{ inputs.group }}
@@ -0,0 +1,23 @@
1
+ # Same as `code-quality-pr.yaml` but triggered on commit to main branch
2
+ # and runs on all files (instead of only the changed ones)
3
+
4
+ name: Code Quality Main
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+
10
+ jobs:
11
+ code-quality:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Setup package
18
+ uses: ./.github/actions/setup
19
+ with:
20
+ python-version: "3.12"
21
+
22
+ - name: Run pre-commits
23
+ run: uv run pre-commit run --all-files --show-diff-on-failure
@@ -0,0 +1,34 @@
1
+ # This workflow finds which files were changed, prints them,
2
+ # and runs `pre-commit` on those files.
3
+
4
+ # Inspired by the sktime library:
5
+ # https://github.com/alan-turing-institute/sktime/blob/main/.github/workflows/test.yml
6
+
7
+ name: Code Quality PR
8
+
9
+ on:
10
+ pull_request:
11
+
12
+ jobs:
13
+ code-quality:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Setup package
20
+ uses: ./.github/actions/setup
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Find modified files
25
+ id: file_changes
26
+ uses: tj-actions/changed-files@v46.0.5
27
+
28
+ - name: List all changed files
29
+ run: echo '${{ steps.file_changes.outputs.all_changed_files }}'
30
+
31
+ - name: Run pre-commits
32
+ run: >
33
+ uv run pre-commit run --show-diff-on-failure
34
+ --files ${{ steps.file_changes.outputs.all_changed_files}}
@@ -0,0 +1,100 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution 📦
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ python-version: ["3.12"]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python ${{ matrix.python-version }}
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+
22
+ - name: Install uv
23
+ uses: astral-sh/setup-uv@v6
24
+ with:
25
+ enable-cache: true
26
+
27
+ - name: Build
28
+ run: uv build
29
+
30
+ - name: Store the distribution packages
31
+ uses: actions/upload-artifact@v4
32
+ with:
33
+ name: python-package-distributions
34
+ path: dist/
35
+
36
+ publish-to-pypi:
37
+ name: Publish Python 🐍 distribution 📦 to PyPI
38
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
39
+ needs:
40
+ - build
41
+ runs-on: ubuntu-latest
42
+ environment:
43
+ name: pypi
44
+ url: https://pypi.org/p/EveryQuery
45
+ permissions:
46
+ id-token: write # IMPORTANT: mandatory for trusted publishing
47
+
48
+ steps:
49
+ - name: Download all the dists
50
+ uses: actions/download-artifact@v4
51
+ with:
52
+ name: python-package-distributions
53
+ path: dist/
54
+
55
+ - name: Publish distribution 📦 to PyPI
56
+ uses: pypa/gh-action-pypi-publish@release/v1
57
+
58
+ github-release:
59
+ name: >-
60
+ Sign the Python 🐍 distribution 📦 with Sigstore
61
+ and upload them to GitHub Release
62
+ needs:
63
+ - publish-to-pypi
64
+ runs-on: ubuntu-latest
65
+
66
+ permissions:
67
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
68
+ id-token: write # IMPORTANT: mandatory for sigstore
69
+
70
+ steps:
71
+ - name: Download all the dists
72
+ uses: actions/download-artifact@v4
73
+ with:
74
+ name: python-package-distributions
75
+ path: dist/
76
+
77
+ - name: Sign the dists with Sigstore
78
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
79
+ with:
80
+ inputs: >-
81
+ ./dist/*.tar.gz
82
+ ./dist/*.whl
83
+ - name: Create GitHub Release
84
+ env:
85
+ GITHUB_TOKEN: ${{ github.token }}
86
+ run: >-
87
+ gh release create
88
+ '${{ github.ref_name }}'
89
+ --repo '${{ github.repository }}'
90
+ --notes ""
91
+ - name: Upload artifact signatures to GitHub Release
92
+ env:
93
+ GITHUB_TOKEN: ${{ github.token }}
94
+ # Upload to GitHub Release using the `gh` CLI.
95
+ # `dist/` contains the built packages, and the
96
+ # sigstore-produced signatures and certificates.
97
+ run: >-
98
+ gh release upload
99
+ '${{ github.ref_name }}' dist/**
100
+ --repo '${{ github.repository }}'
@@ -0,0 +1,47 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ run_tests_ubuntu:
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ fail-fast: false
14
+
15
+ timeout-minutes: 30
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - name: Setup package
21
+ uses: ./.github/actions/setup
22
+ with:
23
+ python-version: "3.12"
24
+
25
+ - name: Run tests
26
+ run: >
27
+ uv run pytest -v
28
+ --ignore=docs
29
+ --cov=src
30
+ --cov-report=xml:coverage.xml
31
+ --cov-report=term
32
+ --junitxml=junit.xml
33
+
34
+ - name: Upload coverage to Codecov
35
+ uses: codecov/codecov-action@v4.0.1
36
+ with:
37
+ token: ${{ secrets.CODECOV_TOKEN }}
38
+ files: coverage.xml
39
+ fail_ci_if_error: true
40
+ verbose: true
41
+
42
+ - name: Upload test results to Codecov
43
+ if: ${{ !cancelled() }}
44
+ uses: codecov/test-results-action@v1
45
+ with:
46
+ token: ${{ secrets.CODECOV_TOKEN }}
47
+ files: junit.xml
@@ -0,0 +1,184 @@
1
+ mgb_lvef/
2
+ mgb_lvef_pt/
3
+ mgb_ecg_pt/
4
+ mgb/
5
+ mimic/
6
+ results/
7
+ meds-torch/
8
+ data-test/
9
+ figures/
10
+ logs/*
11
+ MEDS_EIC_AR/
12
+ *.png
13
+ *.pkl
14
+ experiment_registry.pkl
15
+ outputs/
16
+ # Byte-compiled / optimized / DLL files
17
+ __pycache__/
18
+ *.py[cod]
19
+ *$py.class
20
+ core*
21
+
22
+ # C extensions
23
+ *.so
24
+
25
+ # Distribution / packaging
26
+ .Python
27
+ build/
28
+ develop-eggs/
29
+ dist/
30
+ downloads/
31
+ eggs/
32
+ .eggs/
33
+ lib/
34
+ lib64/
35
+ parts/
36
+ sdist/
37
+ var/
38
+ wheels/
39
+ share/python-wheels/
40
+ *.egg-info/
41
+ .installed.cfg
42
+ *.egg
43
+ MANIFEST
44
+
45
+ # PyInstaller
46
+ # Usually these files are written by a python script from a template
47
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
48
+ *.manifest
49
+ *.spec
50
+
51
+ # Installer logs
52
+ pip-log.txt
53
+ pip-delete-this-directory.txt
54
+
55
+ # Unit test / coverage reports
56
+ htmlcov/
57
+ .tox/
58
+ .nox/
59
+ .coverage
60
+ .coverage.*
61
+ .cache
62
+ nosetests.xml
63
+ coverage.xml
64
+ *.cover
65
+ *.py,cover
66
+ .hypothesis/
67
+ .pytest_cache/
68
+ cover/
69
+
70
+ # Translations
71
+ *.mo
72
+ *.pot
73
+
74
+ # Django stuff:
75
+ *.log
76
+ local_settings.py
77
+ db.sqlite3
78
+ db.sqlite3-journal
79
+
80
+ # Flask stuff:
81
+ instance/
82
+ .webassets-cache
83
+
84
+ # Scrapy stuff:
85
+ .scrapy
86
+
87
+ # Sphinx documentation
88
+ docs/_build/
89
+
90
+ # PyBuilder
91
+ .pybuilder/
92
+ target/
93
+
94
+ # Jupyter Notebook
95
+ .ipynb_checkpoints
96
+
97
+ # IPython
98
+ profile_default/
99
+ ipython_config.py
100
+
101
+ # pyenv
102
+ # For a library or package, you might want to ignore these files since the code is
103
+ # intended to run in multiple environments; otherwise, check them in:
104
+ # .python-version
105
+
106
+ # pipenv
107
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
108
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
109
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
110
+ # install all needed dependencies.
111
+ #Pipfile.lock
112
+
113
+ # poetry
114
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
115
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
116
+ # commonly ignored for libraries.
117
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
118
+ #poetry.lock
119
+
120
+ # pdm
121
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
122
+ #pdm.lock
123
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
124
+ # in version control.
125
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
126
+ .pdm.toml
127
+ .pdm-python
128
+ .pdm-build/
129
+
130
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
131
+ __pypackages__/
132
+
133
+ # Celery stuff
134
+ celerybeat-schedule
135
+ celerybeat.pid
136
+
137
+ # SageMath parsed files
138
+ *.sage.py
139
+
140
+ # Environments
141
+ .env
142
+ .venv
143
+ env/
144
+ venv/
145
+ ENV/
146
+ env.bak/
147
+ venv.bak/
148
+
149
+ # Spyder project settings
150
+ .spyderproject
151
+ .spyproject
152
+
153
+ # Rope project settings
154
+ .ropeproject
155
+
156
+ # mkdocs documentation
157
+ /site
158
+
159
+ # mypy
160
+ .mypy_cache/
161
+ .dmypy.json
162
+ dmypy.json
163
+
164
+ # Pyre type checker
165
+ .pyre/
166
+
167
+ # pytype static type analyzer
168
+ .pytype/
169
+
170
+ # Cython debug symbols
171
+ cython_debug/
172
+
173
+ # PyCharm
174
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
175
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
176
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
177
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
178
+ #.idea/
179
+
180
+ src/every_query/eval_suite/conf/eval_codes/
181
+ src/every_query/aces_to_eq/query_codes/
182
+
183
+ # Generated train code YAMLs
184
+ src/every_query/train_codes/
@@ -0,0 +1,95 @@
1
+ default_language_version:
2
+ python: python3.12
3
+
4
+ repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v6.0.0
7
+ hooks:
8
+ # list of supported hooks: https://pre-commit.com/hooks.html
9
+ - id: trailing-whitespace
10
+ - id: end-of-file-fixer
11
+ - id: check-docstring-first
12
+ - id: check-yaml
13
+ - id: debug-statements
14
+ - id: detect-private-key
15
+ - id: check-executables-have-shebangs
16
+ - id: check-toml
17
+ - id: check-json
18
+ - id: check-xml
19
+ - id: check-merge-conflict
20
+ - id: check-case-conflict
21
+ - id: check-added-large-files
22
+ args: [--maxkb, "800"]
23
+
24
+ # python code formatting, linting, and import sorting using ruff
25
+ - repo: https://github.com/astral-sh/ruff-pre-commit
26
+ rev: v0.12.10
27
+ hooks:
28
+ # Run the formatter
29
+ - id: ruff-format
30
+ # Run the linter
31
+ - id: ruff
32
+ args: ["--fix", "--exit-non-zero-on-fix"]
33
+
34
+ # python docstring formatting
35
+ - repo: https://github.com/myint/docformatter
36
+ rev: v1.7.7
37
+ hooks:
38
+ - id: docformatter
39
+ args: [--in-place, --wrap-summaries=110, --wrap-descriptions=110]
40
+
41
+ # yaml formatting
42
+ - repo: https://github.com/pre-commit/mirrors-prettier
43
+ rev: v4.0.0-alpha.8
44
+ hooks:
45
+ - id: prettier
46
+ types: [yaml]
47
+ exclude: "environment.yaml"
48
+
49
+ # shell scripts linter
50
+ - repo: https://github.com/shellcheck-py/shellcheck-py
51
+ rev: v0.11.0.1
52
+ hooks:
53
+ - id: shellcheck
54
+
55
+ # md formatting
56
+ - repo: https://github.com/executablebooks/mdformat
57
+ rev: 0.7.22
58
+ hooks:
59
+ - id: mdformat
60
+ args: ["--number"]
61
+ additional_dependencies:
62
+ - mdformat-ruff
63
+ - mdformat-gfm
64
+ - mdformat-gfm-alerts
65
+ - mdformat-tables
66
+ - mdformat_frontmatter
67
+ - mdformat-black
68
+ - mdformat-config
69
+ - mdformat-shfmt
70
+ - mdformat-mkdocs
71
+ - mdformat-toc
72
+
73
+ # word spelling linter
74
+ - repo: https://github.com/codespell-project/codespell
75
+ rev: v2.4.1
76
+ hooks:
77
+ - id: codespell
78
+ args:
79
+ - --skip=*.ipynb,*.bib,*.svg,pyproject.toml
80
+ - --ignore-words-list=ehr,crate
81
+
82
+ # jupyter notebook cell output clearing
83
+ - repo: https://github.com/kynan/nbstripout
84
+ rev: 0.8.1
85
+ hooks:
86
+ - id: nbstripout
87
+
88
+ # jupyter notebook linting with ruff
89
+ - repo: https://github.com/nbQA-dev/nbQA
90
+ rev: 1.9.1
91
+ hooks:
92
+ - id: nbqa-ruff
93
+ args: ["--fix"]
94
+ - id: nbqa-ruff-format
95
+ args: ["--line-length=110"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Payal Chandak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: EveryQuery
3
+ Version: 0.1.0
4
+ Summary: A framework for training and evaluating foundation models, using the MEDS ecosystem for data processing and PyTorch Lightning for training.
5
+ Author-email: Payal Chandak <payal.chandak@gmail.com>, Matthew McDermott <mattmcdermott8@gmail.com>, Gregory Kondas <gregkondas9@gmail.com>
6
+ Project-URL: Homepage, https://github.com/payalchandak/EveryQuery
7
+ Project-URL: Issues, https://github.com/payalchandak/EveryQuery/issues
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: polars~=1.30.0
15
+ Requires-Dist: pyarrow
16
+ Requires-Dist: hydra-core
17
+ Requires-Dist: numpy
18
+ Requires-Dist: meds~=0.4.0
19
+ Requires-Dist: filelock
20
+ Requires-Dist: pytest
21
+ Requires-Dist: MEDS-transforms~=0.5.2
22
+ Requires-Dist: meds-torch-data[lightning]~=0.6.3
23
+ Requires-Dist: transformers
24
+ Requires-Dist: torch
25
+ Requires-Dist: torchmetrics
26
+ Requires-Dist: lightning~=2.5.1
27
+ Requires-Dist: dotenv>=0.9.9
28
+ Dynamic: license-file
29
+
30
+ # EveryQuery
31
+
32
+ .env
33
+
34
+ ```
35
+ PROJECT_DIR="/home/pac4279/EveryQuery"
36
+ DATA_DIR="/n/data1/hms/dbmi/zaklab/payal/mimic"
37
+ SAVE_DIR="/n/data1/hms/dbmi/zaklab/payal/EveryQuery/results"
38
+ RAW="${DATA_DIR}/raw"
39
+ INTERMEDIATE="${DATA_DIR}/intermediate"
40
+ PROCESSED="${DATA_DIR}/processed"
41
+ ```
42
+
43
+ run for processing data
44
+
45
+ ```
46
+ MEICAR_process_data input_dir="$RAW" intermediate_dir="$INTERMEDIATE" output_dir="$PROCESSED"
47
+ ```
48
+
49
+ run for training
50
+
51
+ ```
52
+ source .env; set -a; . ./.env; set +a; python source/train.py
53
+ ```
@@ -0,0 +1,24 @@
1
+ # EveryQuery
2
+
3
+ .env
4
+
5
+ ```
6
+ PROJECT_DIR="/home/pac4279/EveryQuery"
7
+ DATA_DIR="/n/data1/hms/dbmi/zaklab/payal/mimic"
8
+ SAVE_DIR="/n/data1/hms/dbmi/zaklab/payal/EveryQuery/results"
9
+ RAW="${DATA_DIR}/raw"
10
+ INTERMEDIATE="${DATA_DIR}/intermediate"
11
+ PROCESSED="${DATA_DIR}/processed"
12
+ ```
13
+
14
+ run for processing data
15
+
16
+ ```
17
+ MEICAR_process_data input_dir="$RAW" intermediate_dir="$INTERMEDIATE" output_dir="$PROCESSED"
18
+ ```
19
+
20
+ run for training
21
+
22
+ ```
23
+ source .env; set -a; . ./.env; set +a; python source/train.py
24
+ ```