Extend ColorMap with target type detection and color resolution #677
Labels
level: intermediate
python coding expertise required
type: feature
a new visualizer or utility for yb
type: technical debt
work to optimize or generalize code
Describe the solution you'd like
The
yellowbrick.style.colors.ColorMap
object is one of the most underutilized objects in our code base and it solves many of the color issues we have such as #325 #327 #244 #556 #70 #73 #399. Now that #588 and #73 are solved in #676, I propose that we extend this object with target type detection and color resolution so that it can be used more meaningfully. The new implementation should do the following:Is your feature request related to a problem? Please describe.
Our color handling is inconsistent at best. A number of visualizers such as RadViz, ParallelCoordinates, PCA, TSNE, etc. only allow for discrete/categorical colors when they could benefit from continuous colors for regression problems. The
resolve_colors
function only works for discrete values, the use of palette names and cmap names is also inconsistent. By creating a single color determination object across all of Yellowbrick, we'll have an easier time managing colorization in our plots.Examples
Categorical colors with color maps/names:
Continuous colors
Learning and transforming colors like an estimator
The text was updated successfully, but these errors were encountered: