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

Save Predictions + Add prediction logging #335

Merged
merged 8 commits into from
Nov 22, 2021
Merged

Save Predictions + Add prediction logging #335

merged 8 commits into from
Nov 22, 2021

Conversation

khumairraj
Copy link
Contributor

No description provided.

@khumairraj khumairraj changed the title Save Predictions Save Predictions + Add prediction logging Nov 21, 2021
open(
embedding_path.joinpath(f"{test_fold_str}.predicted-labels.pkl"), "wb"
),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

a) We can't do any interesting downstream analysis unless predictions AND targets are pickled. This MUST be fixed.

b) Is it difficult to pickle these scores where the test stuff is actually computed, rather than relying upon nebulous global state that may change? (For b) maybe make an issue and move on.)

Copy link
Contributor

Choose a reason for hiding this comment

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

By global state, I mean split_grid_points[i].predictor.test_predicted_labels. Maybe this is okay. but we still must fix a)

Copy link
Contributor Author

@khumairraj khumairraj Nov 22, 2021

Choose a reason for hiding this comment

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

Targets were already saved from before by the embedding module. @jorshi Thanks for adding it here as well along with the prediction logits. Will be in one place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For b) #340

@turian turian merged commit 82adb7b into main Nov 22, 2021
@turian turian deleted the save_pred branch November 22, 2021 10:23
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.

3 participants