Skip to content
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

Improve model_exploration step 2 output #155

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Conversation

riley-harper
Copy link
Contributor

Closes #154.

This PR adds some type hints and doc comments to model_exploration.link_step_train_and_test_models, adds logging statements, and makes the output less chatty and more helpful. This step can take quite a while when the parameter grid to search is large, so the logging statements and print statements are really important for knowing how much progress it has made. The logging statements also give us timestamps, which can be helpful for finding and diagnosing performance issues.

The "Evaluating model performance..." print statements are too chatty for runs
with a large threshold matrix.
This contains some information which could be helpful. Let's keep it around.
@ccdavis ccdavis self-assigned this Oct 9, 2024
Copy link

@ccdavis ccdavis left a comment

Choose a reason for hiding this comment

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

The type hints make this part 3x more understandable. I can't really evaluate the logging except that it makes sense to me.

) -> list[list[pyspark.sql.DataFrame]]:
"""
Get a list of random splits of the prepped_data into two DataFrames.
There are n_training_iterations elements in the list. Each element is
Copy link

Choose a reason for hiding this comment

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

This comment is super helpful.

@riley-harper riley-harper merged commit da0b4fc into main Oct 10, 2024
6 checks passed
@riley-harper riley-harper deleted the model_exploration_output branch October 10, 2024 15:05
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.

Improve model_exploration step 2 output and visibility
2 participants