Skip to content

Commit

Permalink
ensure mct in large mnl is filtered by segmentation column for segmen…
Browse files Browse the repository at this point in the history
…ted large mnl use case
  • Loading branch information
mxndrwgrdnr committed Apr 13, 2020
1 parent 0b55c25 commit 6d6f938
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions urbansim_templates/models/large_multinomial_logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,9 @@ def fit(self, mct=None):
df_from_mct = mct.to_frame()
idx_names = df_from_mct.index.names
df_from_mct = df_from_mct.reset_index()
df_from_mct = apply_filter_query(df_from_mct, self.chooser_filters)
mct = MergedChoiceTable.from_df(df_from_mct).set_index(idx_names)
df_from_mct = apply_filter_query(
df_from_mct, self.chooser_filters).set_index(idx_names)
mct = MergedChoiceTable.from_df(df_from_mct)

else:
observations = get_data(tables = self.choosers,
Expand Down

0 comments on commit 6d6f938

Please sign in to comment.