watex.view.ExPlot.plotradviz#
- ExPlot.plotradviz(classes=None, pkg='pd', **kwd)[source]#
plot each sample on circle or square, with features on the circonference to vizualize separately between target.
Values are normalized and each figure has a spring that pulls samples to it based on the value.
- Parameters
classes (list of int | float, [categorized classes]) – must be a value in the target. Specified classes must match the number of unique values in target. otherwise an error occurs. the default behaviour i.e.
Nonedetect all classes in unique value in the target.pkg (str, Optional,) –
- kind or library to use for visualization. can be [‘sns’|’pd’] for
’yellowbrick’ or ‘pandas’ respectively. default is
pd.
kws (dict,) – Additional keywords arguments are passed down to
yellowbrick.RadViZandpandas.plotting.radviz()
- Returns
``self``
- Return type
ExPlot instance and returns
selffor easy method chaining.
Examples
(1)-> using yellowbrick RadViz
>>> from watex.datasets import fetch_data >>> from watex.view import ExPlot >>> data0 = fetch_data('bagoue original').get('data=dfy1') >>> p = ExPlot(tname ='flow').fit(data0) >>> p.plotradviz(classes= [0, 1, 2, 3] ) # can set to None
-> Using pandas radviz plot
>>> # use pandas with >>> data2 = fetch_data('bagoue original').get('data=dfy2') >>> p = ExPlot(tname ='flow').fit(data2) >>> p.plotradviz(classes= None, pkg='pd' ) ... <'ExPlot':xname=None, yname=None , tname='flow'>