import hvplot.pandas # noqa
Andrews curves provides a mechanism for visualising clusters of multivariate data.
Andrews curves have the functional form:
f(t) = x_1/sqrt(2) + x_2 sin(t) + x_3 cos(t) + x_4 sin(2t) + x_5 cos(2t) + ...
Where x coefficients correspond to the values of each dimension and t is linearly spaced between -pi and +pi. Each row of frame then corresponds to a single curve.
from bokeh.sampledata import iris
iris = iris.flowers
iris.head()
hvplot.plotting.andrews_curves(
iris,
class_column='species',
samples=20,
)