-
Notifications
You must be signed in to change notification settings - Fork 13
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
large mnl simulation fails if choosers is a list #68
Comments
Actually I think the second idea, using a new argument |
Oh, good catch. I think the reasoning we've used in other places is that the first table in a list needs to be the "primary" table, i.e. the one whose rows represent the unit of analysis -- otherwise it's impossible to know how to merge the tables together properly. And in this case, we can assume/require that the output variable goes into the first table. See here in the OLS docstrings for example. So i guess we need to replace MNL#L524-L527 with something like TemplateStep#L290-L308 that i wrote for OLS.. |
Ah, yes, that looks like a more elegant solution. I'll submit the PR. |
Fixed in #69. |
According to the definition of large_mnl, both
choosers
andout_choosers
can be either string type or list of string type, seen here and here, respectively. This all works fine until you get to simulation which usesorca.get_table()
function on choosers/out_choosers to perform the column update and save results, seen here. I'm pretty sure this could be fixed by replacingorca.get_table()
with aself._get_df()
call like is done elsewhere in this model class, but perhaps it would be better to create an additional class attributemodel.out_table
to refer specifically to the output table that will store the results, and which can't be a list of tables, and would therefore be distinct from eithermodel.choosers
ormodel.out_choosers
. Any thoughts?The text was updated successfully, but these errors were encountered: