Skip to content

Commit

Permalink
Merge pull request #46 from AllenNeuralDynamics/han_add_logistic_regr…
Browse files Browse the repository at this point in the history
…ession_plot

feat: add logistic regression fits
  • Loading branch information
hanhou authored Apr 1, 2024
2 parents 6ae86b9 + a749ac0 commit 92613a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def draw_session_plots(df_to_draw_session):

# Setting up layout for each session
layout_definition = [[1], # columns in the first row
[1.5, 1], # columns in the second row
[1, 1], # columns in the second row
[1, 1],
]

Expand Down Expand Up @@ -464,10 +464,15 @@ def init():
root='foraging_auto_training/')
)

logistic_regression_models = ['Su2022', 'Bari2019', 'Hattori2019', 'Miller2021']


st.session_state.draw_type_mapper_session_level = {'1. Choice history': ('choice_history', # prefix
(0, 0), # location (row_idx, column_idx)
dict()),
**{f'{n + 2}. Logistic regression ({model})': (f'logistic_regression_{model}', # prefix
(1 + int(n/2), n%2), # location (row_idx, column_idx)
dict()) for n, model in enumerate(logistic_regression_models)},

# '1. Choice history': ('fitted_choice', # prefix
# (0, 0), # location (row_idx, column_idx)
Expand Down

0 comments on commit 92613a3

Please sign in to comment.