plot_distribution
Plot column distributions. Additionally, it is possible to plot any of
scipy.stats
probability distributions fitted to the column. Missing
values are ignored.
Parameters: |
columns: int, str, slice or sequence, optional (default=0)
distribution: str, sequence or None, optional (default=None)
show: int or None, optional (default=None)
title: str or None, optional (default=None)
figsize: tuple, optional (default=None)
filename: str or None, optional (default=None)
display: bool or None, optional (default=True)
**kwargs |
Returns: |
fig: matplotlib.figure.Figure Plot object. Only returned if display=None .
|
Tip
Use atom's distribution method to check which distribution fits the column best.
Example
from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.plot_distribution(columns=[1, 2]) # With numerical columns
# With fitted distributions
atom.plot_distribution(columns="mean radius", distribution=["norm", "triang"])
# With categorical columns
atom.plot_distribution(columns="Location", show=11)