-
Notifications
You must be signed in to change notification settings - Fork 2
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
Vehicle Type Optimization #66
Conversation
@@ -347,6 +347,17 @@ def iterate_vehicle_type_choice( | |||
model_settings, alts_cats_dict, vehicle_type_data | |||
) | |||
|
|||
# alts preprocessor | |||
alts_preprocessor_settings = model_settings.alts_preprocessor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be model_settings.get("alts_preprocessor", None)
alts_preprocessor_settings = model_settings.alts_preprocessor | ||
if alts_preprocessor_settings: | ||
expressions.assign_columns( | ||
state, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No state variable in this code base. This argument should be removed.
@@ -380,6 +391,12 @@ def iterate_vehicle_type_choice( | |||
len(choosers), | |||
) | |||
|
|||
# filter columns of alts and choosers | |||
if len(model_settings.get("COLS_TO_INCLUDE_IN_CHOOSER_TABLE")) > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to set default for get function to be array. i.e. model_settings.get("COLS_TO_INCLUDE_IN_CHOOSER_TABLE", [])
. Here and below.
Applying a couple of the code changes from Pull Request #806 in the main repo to BayDAG_estimation to help with MemoryErrors occuring in the vehicle type choice model.