RadViz does not plot when transform is called
See original GitHub issueDescribe 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
Output with RadViz
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:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!
@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?