Skip to content

Commit 22ece6d

Browse files
authored
Merge pull request #1 from NxNiki/dev
Add pydantic data model for patients
2 parents f1ce9ca + 7857860 commit 22ece6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2035
-16429
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ build/
2626
# PyCharm
2727
.idea/
2828

29+
# mac os file
30+
.DS_Store
31+
2932
# python cache binaries:
3033
src/movie_decoding/__pycache__/
3134

3235
data/
3336
results/
37+
wandb/

poetry.lock

Lines changed: 677 additions & 460 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ matplotlib = "^3.9.1"
2525
seaborn = "^0.13.2"
2626
pyarrow = "^17.0.0"
2727
scipy = "^1.14.1"
28+
pydantic = "^2.8.1"
29+
mat73 = "^0.61"
2830

2931
[tool.poetry.dev-dependencies]
3032
black = "^23.0"
@@ -44,6 +46,7 @@ target-version = ['py310']
4446
# isort configuration
4547
[tool.isort]
4648
profile = "black"
49+
line_length = 120
4750

4851
# mypy configuration
4952
[tool.mypy]
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
"""
2+
train the model with data while patients are viewing the movie Twilight and 24 and test the model with data during free
3+
recall. The model will be trained to predict movie (Twilight vs 24, model 1) or character in both movies (model 2).
4+
Finally, we will apply the model (with better performance) on data during sleep to examine how reactivation/replay will
5+
impact free recall before and after sleep.
6+
"""
7+
18
import string
29
from pathlib import Path
310

411
import wandb
5-
612
from movie_decoding.main import pipeline
713
from movie_decoding.utils.initializer import *
814

9-
# for patient in ['562', '563', '566', 'i728', '567', '572']:
1015
patient_list = ["i728", "572", "567", "566", "563", "562"]
1116
sd_list = [4, 4, 3.5, 4, 4, 3.5]
1217
# data_list = ['notch CAR4.5', 'notch CAR3.5', 'notch CAR4.5', 'notch CAR4', 'notch CAR3.5', 'notch CAR3.5']

0 commit comments

Comments
 (0)