Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
tests/testdata/eicu_demo/dyn.parquet filter=lfs diff=lfs merge=lfs -text
tests/testdata/eicu_demo/sta.parquet filter=lfs diff=lfs merge=lfs -text
tests/testdata/eicu_demo/hospital.parquet filter=lfs diff=lfs merge=lfs -text
tests/testdata/mimic_demo/dyn.parquet filter=lfs diff=lfs merge=lfs -text
tests/testdata/mimic_demo/sta.parquet filter=lfs diff=lfs merge=lfs -text
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
unittest:
integration-tests:
name: Unit tests - ${{ matrix.PYTHON_VERSION }}
runs-on: ubuntu-latest
strategy:
Expand All @@ -28,12 +28,20 @@ jobs:
environment-file: environment.yml
- name: Install repository
run: python -m pip install --no-build-isolation --no-deps --disable-pip-version-check -e .
- name: Run feature_engineering.py
run: python icu_features/feature_engineering.py --dataset "eicu_demo" --data_dir "tests/testdata"
- name: install icd-mappings
run: pip install icd-mappings
- name: feature engineering for eicu_demo
run: |
python icu_features/icd_codes.py --data_dir "tests/testdata" --dataset "eicu_demo"
python icu_features/feature_engineering.py --dataset "eicu_demo" --data_dir "tests/testdata"
- name: feature engineering for eicu_demo
run: |
python icu_features/split_datasets.py --data_dir "tests/testdata"
python icu_features/icd_codes.py --data_dir "tests/testdata" --dataset "mimic_demo-carevue"
python icu_features/feature_engineering.py --dataset "mimic_demo-carevue" --data_dir "tests/testdata"
- name: Pytest
run: pytest tests


pre-commit-checks:
name: "Linux - pre-commit checks - Python 3.12"
timeout-minutes: 30
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ dependencies:
- pip
- click
- numpy>=2.1
- polars
- polars==1.26
- pytest
- pyarrow
3 changes: 3 additions & 0 deletions icu_features/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .load import load

__all__ = ["load"]
3 changes: 1 addition & 2 deletions icu_features/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

VARIABLE_REFERENCE_PATH = Path(__file__).parents[1] / "resources" / "variables.tsv"

HORIZONS = [8, 24, 72]
HORIZONS = [8, 24]

CAT_MISSING_NAME = "(MISSING)"

Expand Down Expand Up @@ -124,7 +124,6 @@

CONTINUOUS_FEATURES = [
"mean",
"sq_mean",
"std",
"slope",
"fraction_nonnull",
Expand Down
Loading