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

isolate data storage & logging in Subject object #85

Open
neuromusic opened this issue Dec 19, 2014 · 0 comments
Open

isolate data storage & logging in Subject object #85

neuromusic opened this issue Dec 19, 2014 · 0 comments

Comments

@neuromusic
Copy link
Member

this Subject object would have a set of methods to allow the behavioral protocol to save &/or query data

# define a subject
subj = Subject(name='B999',datastore='csv',datadir='/home/user/data')
# save a trial using whatever datastore the subject is using. csv? mongodb?
subj.save_trial(trial_object)
# query the accuracy over the past hundred trials
recent_acc = subj.data[-100:]['correct'].mean()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant