Skip to content

Commit

Permalink
Merge pull request #1 from NxNiki/dev
Browse files Browse the repository at this point in the history
Add pydantic data model for patients
  • Loading branch information
NxNiki authored Sep 19, 2024
2 parents f1ce9ca + 7857860 commit 22ece6d
Show file tree
Hide file tree
Showing 47 changed files with 2,035 additions and 16,429 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ build/
# PyCharm
.idea/

# mac os file
.DS_Store

# python cache binaries:
src/movie_decoding/__pycache__/

data/
results/
wandb/
1,137 changes: 677 additions & 460 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ matplotlib = "^3.9.1"
seaborn = "^0.13.2"
pyarrow = "^17.0.0"
scipy = "^1.14.1"
pydantic = "^2.8.1"
mat73 = "^0.61"

[tool.poetry.dev-dependencies]
black = "^23.0"
Expand All @@ -44,6 +46,7 @@ target-version = ['py310']
# isort configuration
[tool.isort]
profile = "black"
line_length = 120

# mypy configuration
[tool.mypy]
Expand Down
9 changes: 7 additions & 2 deletions scripts/run_model.py → scripts/pipeline_decode_sleep.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
"""
train the model with data while patients are viewing the movie Twilight and 24 and test the model with data during free
recall. The model will be trained to predict movie (Twilight vs 24, model 1) or character in both movies (model 2).
Finally, we will apply the model (with better performance) on data during sleep to examine how reactivation/replay will
impact free recall before and after sleep.
"""

import string
from pathlib import Path

import wandb

from movie_decoding.main import pipeline
from movie_decoding.utils.initializer import *

# for patient in ['562', '563', '566', 'i728', '567', '572']:
patient_list = ["i728", "572", "567", "566", "563", "562"]
sd_list = [4, 4, 3.5, 4, 4, 3.5]
# data_list = ['notch CAR4.5', 'notch CAR3.5', 'notch CAR4.5', 'notch CAR4', 'notch CAR3.5', 'notch CAR3.5']
Expand Down
Loading

0 comments on commit 22ece6d

Please sign in to comment.