Skip to content

Commit

Permalink
Merge pull request #651 from bwentl/coef-filename-esti-fix
Browse files Browse the repository at this point in the history
add model_settings to estimator.write_coefficients
  • Loading branch information
jpn-- authored Feb 10, 2023
2 parents 08c7ab2 + d876d08 commit 3790e7e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion activitysim/abm/models/telecommute_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def telecommute_frequency(persons_merged, persons, chunk_size, trace_hh_id):
if estimator:
estimator.write_model_settings(model_settings, model_settings_file_name)
estimator.write_spec(model_settings)
estimator.write_coefficients(coefficients_df)
estimator.write_coefficients(coefficients_df, model_settings)
estimator.write_choosers(choosers)

choices = simulate.simple_simulate(
Expand Down
2 changes: 1 addition & 1 deletion activitysim/abm/models/transit_pass_ownership.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def transit_pass_ownership(persons_merged, persons, chunk_size, trace_hh_id):
if estimator:
estimator.write_model_settings(model_settings, model_settings_file_name)
estimator.write_spec(model_settings)
estimator.write_coefficients(coefficients_df)
estimator.write_coefficients(coefficients_df, model_settings)
estimator.write_choosers(choosers)

choices = simulate.simple_simulate(
Expand Down
2 changes: 1 addition & 1 deletion activitysim/abm/models/transit_pass_subsidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def transit_pass_subsidy(persons_merged, persons, chunk_size, trace_hh_id):
if estimator:
estimator.write_model_settings(model_settings, model_settings_file_name)
estimator.write_spec(model_settings)
estimator.write_coefficients(coefficients_df)
estimator.write_coefficients(coefficients_df, model_settings)
estimator.write_choosers(choosers)

choices = simulate.simple_simulate(
Expand Down
2 changes: 1 addition & 1 deletion activitysim/abm/models/work_from_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def work_from_home(persons_merged, persons, chunk_size, trace_hh_id):
if estimator:
estimator.write_model_settings(model_settings, model_settings_file_name)
estimator.write_spec(model_settings)
estimator.write_coefficients(coefficients_df)
estimator.write_coefficients(coefficients_df, model_settings)
estimator.write_choosers(choosers)

# - iterative single process what-if adjustment if specified
Expand Down

0 comments on commit 3790e7e

Please sign in to comment.