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

Ming/brain cc #89

Draft
wants to merge 229 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 213 commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
def76e1
Clearing all cells of the notebook.
Feb 2, 2024
7124be8
Adding brain data to the repo and adjusting makefile to point to the …
Feb 2, 2024
a4268b3
Implementing the fnirs model
Feb 3, 2024
39e3b4f
Using settings for env variables, allowing directory change and disab…
Feb 3, 2024
db8bd4c
Using settings for env variables, allowing directory change and disab…
Feb 3, 2024
e1a7a65
Clearing experiment ids not in dataset instead of crashing the program
Feb 3, 2024
5f3443d
Clearing experiment ids not in dataset instead of crashing the program
Feb 3, 2024
57093a5
Clearing experiment ids not in dataset instead of crashing the program
Feb 3, 2024
7d7e431
Adding self to a previouslt static method
Feb 3, 2024
3f7107b
Fixing data filepath in a call to run_inference via the webapp
Feb 3, 2024
2ea79f0
Wait a bit longer before retrying inference in case of crashing becau…
Feb 3, 2024
5fef72f
Fixing duplicate widget key in single run
Feb 3, 2024
f8fe04a
Adding datapath to the InferenceRun object
Feb 3, 2024
2ace48b
Adding missing import
Feb 3, 2024
3ce9937
Fixing sampling on non-serial modules for PPA
Feb 3, 2024
c4a8c3b
Fixing posterior copy to bundle
Feb 3, 2024
a78bc33
Adding more robustness to parallellism by compiling each inference ru…
Feb 3, 2024
80dc5a9
Adding more robustness to parallellism by compiling each inference ru…
Feb 3, 2024
52d82e8
Improving readme
Feb 3, 2024
6dcbcdb
Adding some prints for debug
Feb 3, 2024
213853d
Fixing time broadcast in sd_o when not shared across dimensions
Feb 3, 2024
f54313a
Removing lingering prints
Feb 3, 2024
376714a
Compute RMSE for the training portion as well
Feb 3, 2024
e66f92a
Fixing issue with slicing y_hat_train for PPA summary
Feb 3, 2024
ab48aad
Adding prints for debugging
Feb 3, 2024
e931809
For the RMSE during train, we have no window so we just average over …
Feb 3, 2024
0ef1720
For the RMSE during train, we have no window so we just average over …
Feb 3, 2024
ce4170e
Removing prints
Feb 3, 2024
21d84b5
Removing cumsum from the computation of RMSE for train
Feb 4, 2024
281341d
Creating different metadata per fnirs group
Feb 4, 2024
34edc16
Creating different metadata per fnirs group
Feb 4, 2024
b918d98
Creating different metadata per fnirs group
Feb 4, 2024
f287d6a
Making weights within groups to have correct length
Feb 4, 2024
d22d6eb
Printing fnirs groups for PPA debugging
Feb 4, 2024
7bae3ac
Printing fnirs groups for PPA debugging
Feb 4, 2024
028e241
Sampling when there are multiple groups
Feb 4, 2024
e13dbf8
Sampling when there are multiple groups
Feb 4, 2024
79e5ccb
Sampling when there are multiple groups
Feb 4, 2024
e262b40
Aggregares RMSE over modalities
Feb 4, 2024
10869c8
Aggregares RMSE over modalities
Feb 4, 2024
1cd516c
Storing the mean over features for global RMSE because different moda…
Feb 4, 2024
4431d84
Adding dataset measures to the webapp results
Feb 4, 2024
a7b2101
Adding dataset measures to the webapp results
Feb 4, 2024
fcc077d
Adding dataset measures to the webapp results
Feb 4, 2024
eb8f558
Adding dataset measures to the webapp results
Feb 4, 2024
72b27a9
Writing dataset entry to the screen
Feb 4, 2024
f9d6331
Writing dataset entry to the screen
Feb 4, 2024
3bcd86e
Writing dataset entry to the screen
Feb 4, 2024
7ad5e6e
Plotting series from dataset
Feb 4, 2024
5b04eab
Plotting series from dataset
Feb 4, 2024
86489db
Plotting series from dataset
Feb 4, 2024
5d62129
Adding blas flags to reduce the amount of threads spwned by each chain.
Feb 5, 2024
1105ca5
Adding score diff on ping-pong dataset
Feb 6, 2024
1fb556d
Adding antisymmetric coordination
Feb 6, 2024
9f3a556
Fixing initial samples and PPA scores
Feb 6, 2024
89e650a
Adding hbo data
Feb 6, 2024
0665bf6
Adding hbo data
Feb 6, 2024
079dd95
Adding hbo data
Feb 6, 2024
d731a04
Adding HBO datasets correct
Feb 6, 2024
d564a4b
Bundle update
Feb 6, 2024
a6f4861
Adding score diff to new ping-pong dataset
Feb 7, 2024
5c9ff34
Adding shuffled versions of fnirs datasets for finger tapping and pin…
Feb 8, 2024
ebb360c
Adding all datasets
Feb 8, 2024
a160557
Fixing shuffled dataset
Feb 8, 2024
fcc2d57
Disabling predictive checks when inference is executed in PPA mode
Feb 9, 2024
6bee075
Removing lingering print on summary convergence generations
Feb 9, 2024
6398e96
Fixing small bug
Feb 9, 2024
103765d
More datasets, completing all needed for brain
Feb 9, 2024
1364e32
Add option to hide complete experiments in app progress
Feb 9, 2024
23b61cb
Add option to hide complete experiments in app progress
Feb 9, 2024
cb005bd
Add option to hide complete experiments in app progress
Feb 9, 2024
49942db
Adding
Feb 9, 2024
eb4703e
Adding gsr group
Feb 9, 2024
88bb1aa
Adding gsr group
Feb 9, 2024
dbe80f4
Adding gsr group
Feb 9, 2024
2b5a142
Adding gsr group
Feb 9, 2024
b1f8cb0
Adding gsr group
Feb 9, 2024
b251d58
Printing variable for debugging
Feb 10, 2024
f186cca
Removing rows with no gsr from fnirs + gsr dataset
Feb 10, 2024
7b759b6
Fixing synthetic fnirs data
Feb 10, 2024
a26efc4
Mean at peaks with mean if no peaks
Feb 11, 2024
0aa5fc3
Removing experiments without gsr data for ping-pong
Feb 12, 2024
c7bb85d
Parameterizing self dependency with 2D latent components and adding a…
Feb 15, 2024
1074abb
Adding vocalic params to the brain config bundle
Feb 15, 2024
5e842ac
Adding vocalic to the brain model
Feb 15, 2024
73517dd
Adding vocalic to the brain model
Feb 15, 2024
1681d10
Adding vocalic to the brain model and testing it locally
Feb 15, 2024
2932211
Adding performance class to the ping pong data
Feb 15, 2024
f489b00
Fake teams dataset
Feb 16, 2024
e136b05
Coordination shift dataset
Feb 16, 2024
86f6ffa
Fixing small issue with mapping vocalic_sd_o on brain data for PPA
Feb 17, 2024
c584552
Fixing small issue with mapping vocalic_sd_o on brain data for PPA
Feb 17, 2024
56a32b7
Debug
Feb 17, 2024
9532ca4
Debug
Feb 17, 2024
8f87d6c
Debug
Feb 17, 2024
ac3e15a
Fixing loading initial vocalic samples in PPA
Feb 17, 2024
84aab15
Removing prints
Feb 17, 2024
7b79dfa
Bigger dataset of fake teams
Feb 17, 2024
869c12f
fake teams c-data
Feb 20, 2024
30eabf0
c-data coordination shift after 5
Feb 20, 2024
3880ae7
Get old dataset vocalic back
Feb 20, 2024
0596d74
Adding MC with fake fnirs teams
Feb 21, 2024
d9a2bd7
Adding synthetic data with fnirs + gsr
Feb 21, 2024
4f09a6e
Fixing dataset
Feb 21, 2024
645233d
Adding c-data with c = 0.6
Feb 21, 2024
cbce7ec
Higher noise in the c_model_high data
Feb 21, 2024
c94155e
Higher noise in the c_model_high data
Feb 21, 2024
a900ddb
Allowing groups not to inform asymmetric coordination option
Feb 21, 2024
ab304e1
Adding option for fNIRS 1D state space.
Feb 21, 2024
f426e81
Linting code
Feb 21, 2024
13e608f
notebook
Feb 21, 2024
dbe38a8
Adding mission letter to experiment id in fnirs + gsr minecraft data
Feb 22, 2024
5e79233
Aggregating PPA across sub-experiments for individual experiments
Feb 23, 2024
d35f129
Aggregating PPA across sub-experiments for individual experiments
Feb 23, 2024
89c67c4
Aggregating PPA across sub-experiments for individual experiments
Feb 23, 2024
d239e53
Aggregating PPA across sub-experiments for individual experiments
Feb 23, 2024
e811546
Including a new minecraft dataset comprised of signals for the best c…
Feb 23, 2024
e40ae07
Adding new minecraft fnirs DB with best channel per experiment and qu…
Feb 24, 2024
c323a4e
Adding GSR and vocalic to the best channel datasets
Feb 24, 2024
7959f40
Adjusting performance column in ping-pong dataset
Feb 25, 2024
0036eaf
Adding number of exchanges to the dataset
Feb 25, 2024
bebebdc
Run inferences refactored to perform PPA
Feb 25, 2024
322a9e0
Run inferences refactored to perform PPA
Feb 25, 2024
ccd0796
Run inferences refactored to perform PPA
Feb 25, 2024
59b6ebc
Signal quality accessment plots
Feb 25, 2024
d9cba37
Enabling r-model with vocalic model
Feb 27, 2024
aafc5ce
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
d8352e6
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
8f70f77
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
33184f8
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
c3a6b38
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
4befe69
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
4867e7f
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
d44ea72
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
b3986f6
Fixing copy from bundle to samples for semantic link
Feb 27, 2024
146d233
debug
Feb 28, 2024
3b35103
debug
Feb 28, 2024
3a54043
Removing prints
Feb 28, 2024
68f9132
Adding shuffled MC fnirs dataset
Mar 2, 2024
782f892
Adding semantic link to the brain model
Mar 4, 2024
a990c17
Fixing problem with PPA for different modalities
Mar 6, 2024
4f7441c
Adding synthetic dataset of fake teams with 50 trials
Mar 6, 2024
4a33733
Adapting model to single chain
Mar 7, 2024
e6fa2ff
Adding semantic to models
Mar 7, 2024
0543397
Model of semantics only
Mar 27, 2024
d0d7161
common cause init
Aug 4, 2024
8f83203
Paulo feedback for class methods
Aug 4, 2024
2607e4b
add testing for common cause
Aug 4, 2024
14d47fc
0805-Add testing bundle parameters, but questions for dimensions of t…
Aug 6, 2024
18692bd
Fixing errors in draw samples test
Aug 6, 2024
bb2346a
ming-conda setup:) for locating python path
Aug 7, 2024
fa80979
delete used comments in test_brain_model_common_cause.py
Aug 7, 2024
96d38e1
the common cause affects samples in t=0。
Aug 7, 2024
6624824
leave question for initialize X[0]. And update log_prob function incl…
Aug 8, 2024
ba83c9f
save Paulo's instruction and delete my last contribution
Aug 11, 2024
2143282
fix a bug after deleting my last contribution
Aug 11, 2024
6a9df6b
update
Aug 20, 2024
2e0c640
X shape in cc_log_prob same as sigma's in non common cause log prob
Aug 20, 2024
54cc243
X is 2*Time not 2*subject
Aug 20, 2024
0c39e83
_draw_from_system_dynamics: INIT_X using self method,
Sep 7, 2024
2c5245c
change file name setsh -> set_python_path
mlyann Sep 15, 2024
7f93291
0915 - Meet with Paulo
mlyann Sep 15, 2024
0f92e1d
delete repeat import numpy, pytorch and pymc. keep pt as a tensor
mlyann Sep 15, 2024
0cb818f
Modeling the common cause separately
Sep 17, 2024
0a2fc39
Implementing more things with the common cause and creating stubs for…
Sep 22, 2024
eaa8217
X -> sampled_common_cause. Leave a question, sd_a
mlyann Sep 28, 2024
08c2d5c
finish the funtion, not testing yet
mlyann Sep 28, 2024
38ba91a
update test cases
mlyann Sep 28, 2024
1d49fa0
Writing the test case for the common cause log-prob
Sep 29, 2024
499f222
Fixing log prob for the common cause in the latent compoent
Sep 29, 2024
fed0b7a
update notes in meeting 0929. make coordination also have position an…
mlyann Sep 29, 2024
8ca11e2
update test, failed to update log_prob
mlyann Sep 29, 2024
b70a0f3
updatetests
mlyann Sep 29, 2024
8c0030a
no loop mannual testing
mlyann Sep 30, 2024
d043a27
add results
mlyann Sep 30, 2024
b7e19cd
matrices update the codee
mlyann Sep 30, 2024
8de679b
mannual test and new functino
mlyann Oct 1, 2024
9cea089
finally calculate the values, unsure correctness, but seems correct t…
mlyann Oct 2, 2024
7cb2ec0
paulo meeting - fix the error, and logprob is working
mlyann Oct 2, 2024
da626c5
delete the print
mlyann Oct 4, 2024
f98d68a
update random common cause and random common cause tests
mlyann Oct 4, 2024
990b3f9
Implementing remaining gaps for the common cause
Oct 6, 2024
a370e53
Testing inference
Oct 10, 2024
28f8e0a
More changes to inference
Oct 13, 2024
7dc6f88
Disabling prior check
Oct 13, 2024
6e04411
Fixing disabling prior checks
Oct 13, 2024
bbea15c
Fixing initial cc parameter samples
Oct 14, 2024
03305f0
Computing gllbal PPA
Oct 17, 2024
9b0a05e
Adding synthetic data for cc only and cc+c models
Oct 23, 2024
b4ab300
Adding synthetic data for cc only and cc+c models
Oct 23, 2024
f44df04
Renaming data
Oct 23, 2024
1b1d3e0
Renaming stuff
Oct 23, 2024
84b81fd
Fixing sampling at t=0 for cc models
Oct 24, 2024
0b6f5c6
Ming: nd2d for the new meeting with Kobus and Paulo in Oct 25. I thin…
mlyann Oct 26, 2024
cf88495
fix a comment
mlyann Oct 26, 2024
512c9c3
c1, c2,c3. Making coordination as 3 different value. Between them, c1…
mlyann Oct 26, 2024
dfae7e0
Fixing the coordination with respect to 2d latent component. So here,…
mlyann Oct 27, 2024
6e7a7cf
Initializing common_cause_log_prob with 3D coordination
mlyann Oct 27, 2024
3ea4bd8
Fixing Previous commit,
mlyann Oct 27, 2024
abab192
Adding testing commits
mlyann Oct 27, 2024
9c93815
Fixing the cc logprob
mlyann Oct 27, 2024
1301c55
Ready to review
mlyann Oct 27, 2024
4b4ea1d
Commenting out the debugging print
mlyann Oct 27, 2024
38c4fcd
Changing SigmoidGaussianCoordination into 3D coordination. No testing
mlyann Oct 28, 2024
4cabd18
Finishing draw samples. create_random_variables failed.
mlyann Oct 28, 2024
ba7e00a
Fixing coordination random variable creation when common cause is True
Oct 29, 2024
7e41e2a
Removing .pytensor_compiles from the commit
Oct 29, 2024
846b69d
Adding include_ommon_cause as a boolean in coordination.
Oct 30, 2024
59a4912
3 dimenstions for coordination value
Nov 1, 2024
19e1563
3dimmension coordination facet
Nov 1, 2024
cd49c6e
3d coordination modules
Nov 3, 2024
87a9994
Merge branch 'ming/brain_cc' of github.com:ml4ai/tomcat-coordination …
Nov 3, 2024
c75eadb
Integrating configurable coordination model and parameter settings in…
Nov 3, 2024
d3d0bae
Fixing the if/else block to use `SigmoidGaussianCoordination` when `b…
Nov 3, 2024
e11abe5
Cleaning up Auto Generated Comments. And from line 262 is the latest …
Nov 3, 2024
0559d54
commenting out independent case in brain
Nov 3, 2024
8440b5c
Refactoring 3D class constructor: Replace 'sd_uc' with 'sd_uc_coordin…
Nov 4, 2024
481bd1b
Implementing `given_X` inside the model
Nov 7, 2024
003dcee
reversing last commit, I did sth wrong in the given_X
Nov 7, 2024
772c91f
Fixing brain model to work with dirichlet coordination when common ca…
Nov 8, 2024
622936b
New coordination and cc data with dirichlet
Nov 8, 2024
42682ee
Fixing PPA for 3D dirichlet
Nov 27, 2024
9b0630c
add a python script for running experiments
Nov 28, 2024
d4b7942
Fixing inv function
Dec 5, 2024
8f9a458
Adding a small error to the zero values values
Dec 5, 2024
cd17197
Fixing bug
Dec 5, 2024
57184bb
Fixing PPA
Dec 6, 2024
98afeae
Fixing plot
Dec 6, 2024
f31fc38
Improving name
Dec 6, 2024
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ run/
notebooks/formatting.py
scripts/formatting.py
notebooks/Images

.pytensor_compiles/
*.pkl
110 changes: 59 additions & 51 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,130 +15,138 @@ app:

# To run inference on the ASIST dataset with the Voc model
vocalic_asist:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/asist_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/asist_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json"
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json"

# To run inference on the ASIST dataset with the Link model
vocalic_semantic_asist:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/asist_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/asist_data.csv" \
--model_name="vocalic_semantic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json"
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json"

# To run inference on the ToMCAT dataset with the Voc model
vocalic_tomcat:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/tomcat_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/tomcat_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json"
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json"

# To run inference on the ToMCAT dataset with the Link model
vocalic_semantic_tomcat:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/tomcat_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/tomcat_data.csv" \
--model_name="vocalic_semantic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json"
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json"

######################################################################################
######################################################################################
######################################################################################

# RMSE on the ASIST dataset with the Voc model
vocalic_asist_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/asist_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/asist_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json" \
--do_ppa=1

# RMSE on the ASIST dataset with the Link model
vocalic_semantic_asist_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/asist_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/asist_data.csv" \
--model_name="vocalic_semantic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json" \
--do_ppa=1

# RMSE on ASIST data with the x-model
vocalic_no_coordination_asist_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/asist_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/asist_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_no_coordination_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_no_coordination_params_dict.json" \
--do_ppa=1

# RMSE on the ToMCAT dataset with the Voc model
vocalic_tomcat_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/tomcat_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/tomcat_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json" \
--do_ppa=1

# RMSE on the ToMCAT dataset with the Link model
vocalic_semantic_tomcat_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/tomcat_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/tomcat_data.csv" \
--model_name="vocalic_semantic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_params_dict.json" \
--do_ppa=1

# RMSE on ToMCAT data with the x-model
vocalic_no_coordination_tomcat_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/tomcat_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/tomcat_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/config/params/vocalic_no_coordination_params_dict.json" \
--data_mapping_filepath="data/vocalic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/config/params/vocalic_no_coordination_params_dict.json" \
--do_ppa=1

######################################################################################
######################################################################################
######################################################################################

# Generate x-data dn c-data with x-model and c-models
generate_ppa_synthetic_data:
PYTHONPATH="." ./bin/generate_ppa_synthetic_data
generate_ppa_synthetic_data_vocalic_model:
PYTHONPATH="." ./bin/generate_ppa_synthetic_data_vocalic_model

x_model_x_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/x_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/x_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--do_ppa=1

x_model_c_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/c_data_low.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/c_data_low.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--do_ppa=1

x_model_random_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/random_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/random_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_no_coordination_params_dict.json" \
--do_ppa=1

c_model_x_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/x_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/x_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_params_dict.json" \
--do_ppa=1

c_model_c_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/c_data_low.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/c_data_low.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_params_dict.json" \
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_params_dict.json" \
--do_ppa=1

c_model_random_data_rmse:
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/synthetic/random_data.csv" \
PYTHONPATH="." ./bin/run_inference --evidence_filepath="data/vocalic/synthetic/random_data.csv" \
--model_name="vocalic" \
--data_mapping_filepath="data/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/synthetic/config/params/vocalic_params_dict.json" \
--do_ppa=1
--data_mapping_filepath="data/vocalic/synthetic/config/mappings/vocalic_data_mapping.json" \
--model_params_dict_filepath="data/vocalic/synthetic/config/params/vocalic_params_dict.json" \
--do_ppa=1

######################################################################################
################################# BRAIN #############################################
######################################################################################

# Generate x-data dn c-data with x-model and c-models
generate_ppa_synthetic_data_brain_model:
PYTHONPATH="." ./bin/generate_ppa_synthetic_data_brain_model
Binary file added Paulo's Instruction/Meeting Notes.pdf
Binary file not shown.
Binary file not shown.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ To reproduce the image below, execute the commands in `notebooks/Synthetic Vocal

We provide a series of `make` commands to run inference jobs to reproduce the results in the paper. Comments are included in the Makefile above each target. Optionally, one can trigger the inferences via the webapp we provide and check the results there.

The commands will run inferences in sequence for each experiment in the dataset. If you wish to split inferences in multiple jobs, set the environment variable `N_JOBS` to the appropriate number. Bear in mind each job spawns 4 others: one for each chain.
The commands will run inferences in sequence for each experiment in the dataset. If you wish to split inferences in multiple jobs, set the environment variable `N_JOBS` to the appropriate number. Bear in mind each job spawns 4 others: one for each chain.

The compiled `pytensor` objects will be placed under the folder `.pytensor_compiles` in the project root. This is to avoid errors due to concurrent locks when we try to fit multiple models at the same time. From time to time, you may want to clean that directory to save space. You can change that directory by setting the environment variable `pytensor_comp_dir` before calling the `run_inference` script or the webapp if triggering inferences from there.

## Data

Expand All @@ -58,12 +60,12 @@ It is possible to run it in a remote server and access it locally via port forwa

- **inferences_dir**: directory where inferences must be saved.
- **data_dir**: directory where datasets are located.
- **EVAL_DIR**: directory where evaluations are located. Every time we run an inference run, it will generate a unique ID (timestamp). Traces will be saved under `$inferences_dir/run_id`. We can add extra evaluation objects (.csv and png) in another directory with the format `$EVAL_DIR/run_id` and they will be available in the Evaluations tab in the app.
- **evaluations_dir**: directory where evaluations are located. Every time we run an inference run, it will generate a unique ID (timestamp). Traces will be saved under `$inferences_dir/run_id`. We can add extra evaluation objects (.csv and png) in another directory with the format `$EVAL_DIR/run_id` and they will be available in the Evaluations tab in the app.

![Main Page](assets/images/webapp1.png)
![Spring Model](assets/images/webapp2.png)
![Spring Model](assets/images/webapp3.png)
![Spring Model](assets/images/webapp4.png)
![Page1](assets/images/webapp1.png)
![Page2](assets/images/webapp2.png)
![Page3](assets/images/webapp3.png)
![Page4](assets/images/webapp4.png)

## License

Expand Down
Loading