Repository navigation
Conversation
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The run summary printed by
log_resultsreports the number of scored examples as the number of interpreted features:latent_dfhas one row per scored example (and per scorer), so the count is inflated by the number of examples per latent times the number of scorers. With two latents scored on three examples each, the summary saysNumber of interpreted live features: 6. In a default run with 50 test examples and 50 non-activating examples per latent and two scorers, it is about 200 times too large.This counts distinct
(module, latent_idx)pairs instead. Nothing else in the summary changes.I found this while reading
result_analysis.pyand did not find an existing issue or PR for it.Tests
test_logging_counts_interpreted_features_not_examples: two latents with three examples each must be reported as 2. It fails onmainwith 6.pytest tests/test_log/test_result_analysis.py: 8 passed.ruff check .andblack --checkare clean.This touches a different part of the file from #201 and merges cleanly with it.