Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of possibly many PRs about updating the code to fit training sessions. My first goal is to build the infrastructure for getting a manifest of sessions. Then I will update the fitting scripts. The guts of the model should be fine with the exception of early training sessions, but I will need to review them. Finally I will review the training summary file
Manifest and Inventory
ptt.get_training_manifest()
generates a list of all training sessions associated with the mice insummary_df
ptt.get_training_inventory()
Fitting Scripts
scripts/deploy_training.sh
scripts/deploy_training.py
scripts/fit_training.py
Model internals
Training Summary file
ptt.get_training_summary_table()
loads the saved training summary fileptt.build_training_summary_table()
computes and saves the training summary fileptt.build_core_training_table()
loads the model fits and compiles model fit informationptt.add_time_aligned_training_info()
saves image by image information to the summary fileptt.add_training_engagement_metrics()
annotates engagement status.Analysis
ptt.plot_average_by_stage()
ptt.plot_average_by_stage_inner()
ptt.clean_session_type()
is redundant withpgt.get_clean_session_name
ptt.get_mouse_pivot_table()
ptt.plot_mouse_strategy_correlation()
ptt.plot_average_by_day()
plot_all_
functions and use a list of metrics to call the relevant plot functionspsy_style
for colors