HDDM "load" function equivalent in HSSM? #262
Answered
by
frankmj
nancyebner
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, HSSM just accepts pandas DataFrames now, so you can just use pd.read_csv to get a DataFrame and pass it to HSSM. In a future version we might just do this in HSSM so people will just need to pass a string of the path to the csv. |
Beta Was this translation helpful? Give feedback.
1 reply
-
HI Paul,
once it is a dataframe you can pass it to HSSM in the same way as in the
tutorial using simulated data with whatever model specification you want.
e.g. for the most basic model:
simple_ddm_model = hssm.HSSM(data=dataset)
replacing 'dataset' with the name of your dataframe, which has to have
columns for response and rt in seconds.
M
…On Wed, Aug 9, 2023 at 7:59 AM NEbner ***@***.***> wrote:
Hi,
Thank you for your answer. I was able to get the dataframe but how do I
pass it to HSSM now?
Thanks again.
—
Reply to this email directly, view it on GitHub
<#262 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG7TFEUC7YKF236LJKPHTLXUN3RHANCNFSM6AAAAAA3J3CXZM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nancyebner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use my own dataset instead of simulating one, in the HDDM package the load function could be used to call a csv file containing my own dataset. I am struggling to find an equivalent in the HSSM framework. It is likely that I am misunderstanding something but I am unable to go on without this step so any help is much appreciated! (ps: I also tried to follow this example (in GoogleColab) using the package-supplied dataset:
"Load a package-supplied dataset"
cav_data = hssm.load_data('cavanagh_theta')
(https://lnccbrown.github.io/HSSM/#installation) but this is once again a package-supplied dataset, and I would like to use my own. Is this a possibility?
Beta Was this translation helpful? Give feedback.
All reactions