You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to use the data we've fitted so far to adjust our default priors accordingly. Found this from scipy today: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.fit.html (but maybe @bburan knows of something better) which should give a rough estimate of how well a given distribution type fits the data. @svdavid also mentioned wanting to visualize the fitted parameters somehow. My idea is to create a function/module in that basically does:
get data in a form along the lines of: {'parameter1': [datapoint1, datapoint2 ...], 'paramter2': [...]}
use the scipy function linked above (or some other existing stats utility) to get fitted distributions.
for each parameter, create one plot for each fitted distribution, with the distribution and its parameters overlayed (and some kind of error quantification).
The core function that handles this would be in nems and just expect the data structure to come from some where else (like the nems.modelspec.summary_stats function), but baphy-oriented wrappers in nems_db would make it simple use with our cellid/batch/modelspec idiom.
Also: Maybe fitted_params_per_batch and/or _per_model wrappers would be helpful? Should
just need some simple db queries to get lists of desired cellids, then pass along to the current utility function.
Intending to code this up myself, but thoughts/suggestions on features or changes that sound useful or not-so-useful would be helpful.
The text was updated successfully, but these errors were encountered:
We should be able to use the data we've fitted so far to adjust our default priors accordingly. Found this from scipy today: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.rv_continuous.fit.html (but maybe @bburan knows of something better) which should give a rough estimate of how well a given distribution type fits the data. @svdavid also mentioned wanting to visualize the fitted parameters somehow. My idea is to create a function/module in that basically does:
The core function that handles this would be in nems and just expect the data structure to come from some where else (like the nems.modelspec.summary_stats function), but baphy-oriented wrappers in nems_db would make it simple use with our cellid/batch/modelspec idiom.
Also: Maybe fitted_params_per_batch and/or _per_model wrappers would be helpful? Should
just need some simple db queries to get lists of desired cellids, then pass along to the current utility function.
Intending to code this up myself, but thoughts/suggestions on features or changes that sound useful or not-so-useful would be helpful.
The text was updated successfully, but these errors were encountered: