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

toggle confusion matrix text #146

Merged
merged 2 commits into from
Nov 6, 2023
Merged

toggle confusion matrix text #146

merged 2 commits into from
Nov 6, 2023

Conversation

dberenbaum
Copy link
Contributor

@dberenbaum dberenbaum commented Oct 16, 2023

Closes:

After looking into this briefly, it was less work and more useful to add a toggle to turn text on or off.

Demo:

Screen.Recording.2023-10-16.at.4.05.57.PM.mov

@@ -205,6 +205,12 @@ class ConfusionTemplate(Template):
"data": {"values": Template.anchor("data")},
"title": Template.anchor("title"),
"facet": {"field": "rev", "type": "nominal"},
"params": [
{
"name": "toggleText",
Copy link
Member

Choose a reason for hiding this comment

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

[Q] Could we change this to be a single word like "values" to match "smooth" from the smooth/linear template?

Copy link
Member

Choose a reason for hiding this comment

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

or showValues... unsure, just suggestions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'll go with showValues. I don't like it either but couldn't find a way to have a nicely formatted name here.

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
src/dvc_render/vega_templates.py 94.26% <ø> (ø)

📢 Thoughts on this report? Let us know!.

@mattseddon
Copy link
Member

@dberenbaum should we release this now?

@dberenbaum
Copy link
Contributor Author

Thanks @mattseddon. Forgot about this one. Merging now.

@dberenbaum dberenbaum merged commit 5280aa2 into main Nov 6, 2023
13 checks passed
@dberenbaum dberenbaum deleted the confusion-text branch November 6, 2023 22:55
@mattseddon
Copy link
Member

Quick question, any reason this wasn't applied to the NormalizedConfusionTemplate?

@dberenbaum
Copy link
Contributor Author

I can't remember off the top of my head. I would check if the floats for the normalized template look okay, but otherwise I don't see a reason not to add it there.

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