Updated the commits for sanity checks.

This commit is contained in:
Batuhan Berk Başoğlu 2025-09-17 21:06:20 -04:00
parent 2a7c9cd28b
commit 5702c3c1b8
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
4 changed files with 157 additions and 13 deletions

View file

@ -129,7 +129,7 @@ if __name__ == "__main__":
df.dropna(inplace=True) # remove null values
print(f"Rows remaining after drop of the null values: {len(df)}")
# sanity checks for data validity
# sanity checks for data validity - realistic parkinson data range estimations
df = df[(df['age'] >= 18) & (df['age'] <= 95)]
df = df[(df['motor_UPDRS'] >= 0) & (df['motor_UPDRS'] <= 100)]
df = df[(df['total_UPDRS'] >= 0) & (df['total_UPDRS'] <= 100)]