|
1 | 1 | import os |
2 | 2 | import pickle |
3 | 3 | os.chdir('/home/alex.piet/codebase/behavior/licking_behavior') |
4 | | -os.chdir('/Users/alex.piet/licking_behavior') |
| 4 | +#os.chdir('/Users/alex.piet/licking_behavior') |
5 | 5 | from alex_utils import load |
6 | 6 | import matplotlib.pyplot as plt |
7 | 7 | import fit_tools |
|
34 | 34 | reward_params = model.res.x[17:37] |
35 | 35 | flash_params = model.res.x[37:52] |
36 | 36 | cflash_params = model.res.x[52:67] |
37 | | -params = [flash_params, cflash_params,reward_params,post_lick_params] |
38 | | -durations = [model.flash_duration,model.change_flash_duration,model.reward_duration,model.post_lick_duration] |
39 | | -sigmas = [model.flash_sigma,model.change_flash_sigma,model.reward_sigma,model.post_lick_sigma] |
40 | | -events = [[0, 75,150,225,300,375,450,525],[75],[109],[109, 125,141,157,172, 190,205,230]] |
| 37 | +params = [model.res.x[0], flash_params, cflash_params,reward_params,post_lick_params] |
| 38 | +durations = [0,model.flash_duration,model.change_flash_duration,model.reward_duration,model.post_lick_duration] |
| 39 | +sigmas = [0,model.flash_sigma,model.change_flash_sigma,model.reward_sigma,model.post_lick_sigma] |
| 40 | +events = [[],[0, 75,150,225,300,375,450,525],[75],[109],[109, 125,141,157,172, 190,205,230]] |
41 | 41 | plt.close('all') |
42 | 42 | reload(plot_tools) |
43 | 43 | plot_tools.plot_components(params,durations,sigmas,events,5,model.res.x[0]) |
|
57 | 57 | plt.close('all') |
58 | 58 | fit_tools.compare_model(model.res.latent, time_vec, licks, stop_time, rewards=rewards, flashes=flashes, change_flashes=change_flashes, running_speed = running_speed[:-1]) |
59 | 59 |
|
| 60 | + |
| 61 | + |
60 | 62 | # Sanity Checks |
61 | 63 | import analysis_tools as at |
62 | 64 | at.compare_all_inter_licks() |
|
0 commit comments