Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature domains #1

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
41dbfb3
Add nonlinear feature extractions
Feb 14, 2022
24a1889
Add statistical features extraction
GoWithTheFlo95 Feb 14, 2022
cb2eb31
Add sdppg features extraction
GoWithTheFlo95 Feb 14, 2022
3bf1f28
Add frequency features extraction
GoWithTheFlo95 Feb 14, 2022
6b1edf6
Add HRV features extraction
GoWithTheFlo95 Feb 15, 2022
ea3fb03
Change names of methods; Clean-up
GoWithTheFlo95 Feb 16, 2022
0bf014e
Adapt gitignore
GoWithTheFlo95 Feb 16, 2022
e0367c4
review time features; add comments
GoWithTheFlo95 Apr 4, 2022
73e6783
review nonlinear features; add comments
GoWithTheFlo95 Apr 4, 2022
228408a
review sdppg features; add comments
GoWithTheFlo95 Apr 4, 2022
286f0f3
review frequency features; Add comments
GoWithTheFlo95 Apr 4, 2022
ce2dcc7
Clean up
GoWithTheFlo95 Apr 4, 2022
c4877a7
review hrv features; add comments
GoWithTheFlo95 Apr 4, 2022
7e45e9a
Double check code and adapt according to tests on PPG-BP dataset
GoWithTheFlo95 Apr 10, 2022
69da204
Fix conversion error
GoWithTheFlo95 Apr 11, 2022
773b897
Add comments; remove cleanSegment for frequency and hrv
Apr 14, 2022
14739af
Replace append by concat; Clean-up; add check for null array to frequ…
Apr 15, 2022
1410685
Add feature empty check; Add cleanSegment length check
Apr 15, 2022
f943caa
Add checks to feature extraction
Apr 17, 2022
bd9ed21
Cleanup; remove finished TODOs
Apr 19, 2022
3b68b8f
Put output in verbose mode; add TODO
Apr 22, 2022
0332152
Remove len check of cleaned dataframe
Apr 22, 2022
82967d9
Compare code to ALPS repository
Apr 22, 2022
c3a33ca
adapt nn_threshold
GoWithTheFlo95 Apr 28, 2022
e707d1d
Adapt ibi_series computation
May 10, 2022
f9f5eb0
add sw features
GoWithTheFlo95 Jun 7, 2022
3fb109d
Change cutOff-Frequency
Jun 7, 2022
3688746
adapt computation of time features
Jun 9, 2022
752dce5
adapt nonlinear: fs for time computation
Jun 9, 2022
4f8e850
adapt statistical: fs for time computation
Jun 9, 2022
55c4d7e
adapt statistical: fs for time computation
Jun 9, 2022
a80498c
adapt hrv: fs for time computation
Jun 9, 2022
6a73fb2
Add TODO
Jun 9, 2022
7d38d7f
Change interval size for frfrequency blocks
Jun 9, 2022
321baf5
Add SampEn check
Jun 11, 2022
f4ec044
add CP mean and var; remove CP from time features
GoWithTheFlo95 Jun 18, 2022
5141630
fix concatinating error
GoWithTheFlo95 Jun 18, 2022
16eb909
Adapt computation of HR
GoWithTheFlo95 Jun 18, 2022
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
Prev Previous commit
Adapt computation of HR
GoWithTheFlo95 committed Jun 18, 2022
commit 16eb9093ba163fd93dfc0157eff0b4ce9368e88e
2 changes: 1 addition & 1 deletion pypg/features.py
Original file line number Diff line number Diff line change
@@ -977,7 +977,7 @@ def _temporal_hrv(ibi_series):
nn_threshold = 50 # TODO: @Ari: HOW TO SET THIS VALUE? > IBI_SERIES VALUES around 0.88 ish. Affect computation of nn_xx /// was 50 before

# Prepare data
instantaneous_hr = 60 / (ibi_series / 1000) # TODO: @Ari: why divided by 1000? from ms to s?
instantaneous_hr = 60 / ibi_series #/1000 # TODO: @Ari: why divided by 1000? from ms to s? > if ibi series in ms but for MIMIC it is in s
rolling_mean_hr = instantaneous_hr.rolling(window).mean()
rolling_24h = ibi_series.rolling(window)