Skip to content

condo train test evaluation - #156

Merged
wrridgeway merged 14 commits into
masterfrom
tim_condo_train_test_evaluation
May 12, 2026
Merged

wrridgeway merged 14 commits into
masterfrom
tim_condo_train_test_evaluation

Conversation

@TimCookCountyDS

Copy link
Copy Markdown
Contributor

Adds evaluation statistics (RMSE, mDape, etc.) to the training set. These are the same performance stats that are currently calculated on the test set. (This also mirrors the new implementation in the residential model). The goal is to have more visible train/test metrics, so that we can better evaluate model overfitting.

More detail can be found in the linked issue (#146):

In addition to running the code, please validate by ensuring that there is now a new card (train_card) for your condo run, and that new stages, for train are added to the performance database). Check that the training data accounts for roughly 90% of the overall (train+test) data. Pick a geo or two at random and compare their train test stats on a metric of your choosing (e.g. RMSE - generally the train measure should be superior - although sometimes it is not). (See here for some examples: #146 (comment))

(general scaffold of the code is here- #146 (comment))

@TimCookCountyDS

Copy link
Copy Markdown
Contributor Author

@wagnerlmichael can you try running this locally? just to see that workflow replicates in your environment.

@wagnerlmichael

Copy link
Copy Markdown
Member

@wagnerlmichael can you try running this locally? just to see that workflow replicates in your environment.

The code seems to work locally but errors on report generation, I have code in in the subset PR that fixes that. I also didn't test the upload stage since I don't have perms to upload locally. But the main logic changes in the new stat generation run without error

@wrridgeway

Copy link
Copy Markdown
Member

I'll let you guys sort out the merge conflicts and then I'll take a look at this.

@TimCookCountyDS

Copy link
Copy Markdown
Contributor Author

I'll let you guys sort out the merge conflicts and then I'll take a look at this.

@wrridgeway - merge conflicts should be resolved- we await your review :)

@wrridgeway wrridgeway left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work here guys. Maybe I'm wrong, but it seems like we've been forgetting to track some of the test set performance with dvc. If that is the case, we might want to make sure to make sure we're not making the same mistake in the res avm as well.

Comment thread pipeline/06-upload.R Outdated
Comment thread dvc.yaml
- output/performance_quantile/model_performance_quantile_train.parquet:
cache: false
- output/performance_quantile/model_performance_quantile_train_linear.parquet:
cache: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we're missing test_linear and quantile_test_linear here... we should probably add them, yeah?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just an oversight on my part - can add

Co-authored-by: William Ridgeway <10358980+wrridgeway@users.noreply.github.com>
@wrridgeway
wrridgeway merged commit ee9bbef into master May 12, 2026
5 of 6 checks passed
@wrridgeway
wrridgeway deleted the tim_condo_train_test_evaluation branch May 12, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add train-test split to condo model (code-only, seperate card for report update)

3 participants