Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions openavmkit/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,10 @@ def finalize_models(
save_params: bool = True,
use_saved_params: bool = True,
verbose: bool = False,
run_main: bool = True,
run_vacant: bool = True,
run_hedonic: bool = True,
run_ensemble: bool = True,
) -> None:
"""
Tries out predictive models on the given SalesUniversePair, finalizes results and writes to disk.
Expand All @@ -1680,6 +1684,14 @@ def finalize_models(
Whether to use saved model parameters.
verbose : bool, optional
If True, prints additional information.
run_main : bool, optional
Whether to run the main (improved-parcel) model. Defaults to True.
run_vacant : bool, optional
Whether to run the vacant-land model. Defaults to True.
run_hedonic : bool, optional
Whether to run the hedonic (land/improvement split) model. Defaults to True.
run_ensemble : bool, optional
Whether to build an ensemble of the base models. Defaults to True.

Returns
-------
Expand All @@ -1694,10 +1706,10 @@ def finalize_models(
use_saved_params,
save_results=True,
verbose=verbose,
run_main=True,
run_vacant=True,
run_hedonic=True,
run_ensemble=True,
run_main=run_main,
run_vacant=run_vacant,
run_hedonic=run_hedonic,
run_ensemble=run_ensemble,
do_shaps=False,
do_plots=False
)
Expand Down
Loading