Questions tagged [yellowbrick]

Yellowbrick is a Python visualization library for machine learning. It extends the Scikit-Learn API to provide visual diagnostic tools for classifiers, regressors, clusterers, transformers, pipelines, feature extraction tools and more. This tag should be used to ask questions about how to use visualizers, how to extend or modify visualizations, or how to interpret diagnostics. This tag is commonly used with the scikit-learn and matplotlib tags.

Yellowbrick (sometimes referred to as scikit-yellowbrick) is a Python library that extends the Scikit-Learn API to enhance the machine learning workflow with visual diagnostics with matplotlib. The yellowbrick tag is therefore usually applied in combination with the scikit-learn, python, and matplotlib tags. Good questions for this tag include:

  1. Questions about how to work with or extend existing visualizers
  2. Questions about how to interpret visual results
  3. Questions about how to modify resulting figures or annotate them
  4. Questions about how to create new visualizers

The best questions will include a code example along with the figure being generated by Yellowbrick. In order to allow others to run your code, if the visualization is not data specific (e.g. the questions is not the result of specific input), please use one of the example datasets from the Yellowbrick tutorial or one of Scikit-Learn's dataset generation methods. It is also very helpful if you include the version of Yellowbrick you're using, which can be found with print(yellowbrick.__version__).

For result interpretation questions, please be as general as possible and focused on the content of the visualizer. For example, a good question is "what is the meaning of the macro-average curve on ROC/AUC with more than two classes?" A poor question is "how do I make my model have a higher F1 score?"

Finally, for both folks asking questions and those responding, Yellowbrick contributors and developers take seriously respectful discourse. In addition to be nice, the StackExchange code of conduct, Yellowbrick also follows the Python Software Foundation Code of Conduct

Definitions

Yellowbrick extends the Scikit-Learn API with a new Estimator called a Visualizer. Visualizers are estimators, in that they can be fit with data in order to produce a visualization. Anything that produces a visualization in Yellowbrick is a Visualizer, though there are different types.

A FeatureVisualizer produces a representation of the feature space or data space. These are used to explore the input to models or the relationship of data to the model.

A ModelVisualizer produces a representation of the model space, describing how the model interacts with data or behaves. It does this in two ways, by describing internal parameters of the model, or by describing the relationship to test data with a ScoreVisualizer.

73 questions
2
votes
1 answer

how to adjust matplotlib chart figure

So I'm using yellowbrick in Python, which is basically matplotlib and scikit-learn combined, to visualize some data. My chart looks like this: The labels get cut off. What I want to do is to adjust the figure so the labels on the right don't get…
2
votes
0 answers

Fix overlapping labels in large matplotlib graph

I have this error in a graphing package I am using, yellowbrick, where, because of the extreme size of the resulting image, the labels around the graph I am trying to save do not get rendered properly. The command I am using is Rank2D, which is…
Coolio2654
  • 1,589
  • 3
  • 21
  • 46
2
votes
1 answer

Changing Yellowbrick visiualization colors

In Yellowbrick visiualization library, the default color for the classification report is red: from lighter to darker tones. Is there a way to change this color and use green, blue, etc.?
Gursel Karacor
  • 1,137
  • 11
  • 21
1
vote
1 answer

yellowbrick module instalation affects matplotlib fonts avaliable

After instalation and import of yellowbrick module matplotlib can't find some of the fonts for its labels and titles like Arial, Liberation Sans, Bitstream Vera Sans, sans-serif the following warning appears: ´´´ findfont: Generic family…
1
vote
2 answers

AttributeError: 'KMeans' object has no attribute 'k'

I know there is an exactly similar question [here]. But it doesn't work for me, and another guy found it incorrect, as stated in the answer's comment. Although, the OP (who also answered his question) hasn't responded to the comment to explain more.…
Shayan
  • 5,165
  • 4
  • 16
  • 45
1
vote
1 answer

Unable to install Yellowbrick or Pipenv on Conda on Windows: infinite package conflicts

I have recently installed Anaconda3 on my Windows machine. I need to install Yellowbrick and followed their instructions on the quickstart page. Conda is not on my system's PATH, according to installation instructions. From the anaconda prompt, I…
1
vote
1 answer

Highlighting specific data points for parallel coordinates plot

I'm looking for help to highlight/color particular data points on the parallel coordinates plot. I can't seem to find a way that work. Essentially, I want to plot all the data as below, and then take, e.g., index [0, 1, 2] of the data points and…
Plewis
  • 119
  • 10
1
vote
1 answer

How can I use yellowbrick on the output of non-scikit models

How can I use yellowbrick on the output of non-Scikit models? I have a PyTorch multi-class classifier network and would like to use the ClassificationReport functionality on the results of applying this model to data. How can I do this?
Dave
  • 7,555
  • 8
  • 46
  • 88
1
vote
1 answer

YellowbrickTypeError for Keras Model: This estimator is not a classifier; try a regression or clustering score visualizer instead

I have the following Keras DNN model and have imported necessary Keras & Yellowbrick libraries: optimizer = RMSprop(0.001) finalDNNModel_wrap = KerasClassifier(build_fn=parkOptimalDNN(optimizer), epochs=750, batch_size=10, verbose=0) finalDNNModel…
Bil
  • 11
  • 2
1
vote
0 answers

How to change the marker in yellowbrick plots?

As the title suggests, I have some trouble changing the marker style in some of the Yellowbrick plots. For instance, I know it is possible to do so for the ScatterVisualiser, but I would like to do the same for ValidationCurve also. Is this…
Burger Bob
  • 131
  • 3
1
vote
1 answer

How to change font size in yellowbrick classification report?

See classification report produced by the code below. The text for the class labels, scores, and color bar are way too big. How can I make the text smaller? for name, model in final_models: classes = ["unfavorable mRS (3-6)", "favorable mRS…
1
vote
1 answer

KElbowvisualizer Re-Formatting other Plots

I randomly selected a number of clusters to plot my dataset with to see the distribution and then I went back and visualized the optimal # of clusters to use with my dataset by using KElbowvisualizer. However, when I went back to my original…
Cam
  • 111
  • 1
  • 8
1
vote
3 answers

Yellowbrick Module NotFoundError in Python

I am trying to using Yellowbrick to make an elbow plot.(to make the k-means clustering) I have installed Yellowbrick in jupyter notebook. but, it keeps returning the error message like below. The error message and information are attached as…
한솔지
  • 11
  • 1
  • 3
1
vote
2 answers

Cannot import installed python library yellowbrick to jupyter notebook

I installed the yellowbrick python library using pip "install yellowbrick". It was installed, but jupyter notebook cannot import the library. When it imports, results show "No module named 'yellowbrick'". But library had perfectly installed.
Udishan
  • 125
  • 5
1
vote
1 answer

How to combine 2 plots in 1 cell, Python?

Could you change my code in this way so as to have these 2 plots alongside, means in 1 row and 2 column (subplot nrows=1, ncols=2) ? Currently I have these charts in 2 separate cells, and I want to have them in 1. my code: First plot: from…
dingaro
  • 2,156
  • 9
  • 29