question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Categorical Schemes for non-categorical data results in unhelpful error

See original GitHub issue

When I tried to supply scheme=‘dark2’ for a qualitative column I got

Javascript Error: e is undefined

Looks like there’s an error in an exception handler somewhere

i.e.

color=alt.Color('Loss', scale=alt.Scale(scheme='dark2'))

Fails (reasonably) since ‘dark2’ isn’t a continuous scale, but the message could be more informative.

color=alt.Color('Loss', scale=alt.Scale(scheme='viridis'))

is ok.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Jul 10, 2019

You could propose a more helpful error in http://github.com/vega/vega-lite

0reactions
domoritzcommented, Jul 11, 2019

I moved the Vega-Lite issue to Vega: https://github.com/vega/vega/issues/1872

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coding Systems for Categorical Variables in Regression ...
Another method for analyzing categorical data would be to use the glm command and ... This regression coding scheme yields the comparisons described...
Read more >
Categorical encoding of decision variables in orbitofrontal cortex
Here we present a new algorithm to assess whether a neuronal representation is categorical or non-categorical, and to identify the encoded variables if...
Read more >
Representing Categorical Data with Target Encoding
In this post we'll evaluate different encoding schemes, build a cross-fold target encoder to mitigate the drawbacks of the naive target encoder, ...
Read more >
Categorical variable - Wikipedia
In statistics, a categorical variable (also called qualitative variable) is a variable that can take on one of a limited, and usually fixed,...
Read more >
Chapter 16 Analyzing Experiments with Categorical Outcomes
from analyzing data with, say, a two-level categorical outcome (usually designated generically as “success” and “failure”) using ANOVA or regression or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found