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.

RadViz does not plot when transform is called

See original GitHub issue

Describe the bug I wanted to fit the model on the dataset and obtain its plot by using transform function on their subset. While working with RadViz, I found that it plots the graph when fit method is called. However, it should plot the output, when the transform method is implemented as described in the domentation. Moreover, I did not get the desired result (i.e. plotting) when transform method is called. I was able to get these results using ‘Rank1D,’ but ‘RadViz’ did not work.

Output with Rank1D Screenshot (122)

Output with RadViz Screenshot (123)

To Reproduce

from yellowbrick.features import Rank1D
from yellowbrick.features import RadViz
fig=plt.figure()
visualizer = RadViz(features=features,classes=classes)
visualizer.fit(X, y)                # Fit the data to the visualizer
for i in range(5):
    ax0 = fig.add_subplot(5,1,i+1)
    visualizer.ax=ax0
    visualizer.transform(X[i*100:(i+1)*100])             # Transform the data
        
fig=plt.figure()
visualizer = Rank1D(features=features, algorithm='shapiro')
visualizer.fit(X, y)                # Fit the data to the visualizer
for i in range(5):
    ax0 = fig.add_subplot(5,1,i+1)
    visualizer.ax=ax0
    visualizer.transform(X[i*100:(i+1)*100])             # Transform the data
        
        

Dataset I used bikeshare dataset and used features = [‘temp’,‘humidity’,‘windspeed’,‘registered’,‘riders’] and ‘holiday’ as y.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
bbengfortcommented, Apr 9, 2020

@rebeccabilbro @naresh-bachwani I believe that this issue with the inconsistent API has now been fixed, and it’s a matter of more deeply researching how to do multi-visualizer/multi-figure drawing. Let’s go ahead and close this issue and explore it more specifically if it comes up in a different way!

0reactions
rebeccabilbrocommented, Apr 8, 2020

@naresh-bachwani @bbengfort I believe this issue has been resolved following the changes made in #973 and for #960. Now neither of these visualizers actually plots until show() is called. Can you guys confirm that this issue can be closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RadViz Visualizer — Yellowbrick v1.5 documentation
RadViz is a multivariate data visualization algorithm that plots each ... has both the X and y data required for the viz and...
Read more >
Visualizing Multivariate Data with Radviz
The Radviz package implements the concept of dimensional anchors to visualize multivariate datasets in a 2D projection, as originally described ...
Read more >
Keywords arguments in matplotlib radviz - Stack Overflow
I am trying to understand the keyword arguments that can be used in matplotlib radviz. I am using the well- ...
Read more >
pandas.plotting.radviz — pandas 1.5.2 documentation
RadViz allow to project a N-dimensional data set into a 2D space where the influence of each dimension can be interpreted as a...
Read more >
Methods — yellowbrick 0.3.3 documentation - PythonHosted.org
Note that this will create a directory called data that contains ... Rank2D: rank pairs of features to detect covariance; RadViz: plot data...
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