sklearn_lvq.utils.plot2d

sklearn_lvq.utils.plot2d(model, x, y, figure, title='')[source]

Projects the input data to two dimensions and plots it. The projection is done using the relevances of the given glvq model.

Parameters:
model : GlvqModel that has relevances

(GrlvqModel,GmlvqModel,LgmlvqModel)

x : array-like, shape = [n_samples, n_features]

Input data

y : array, shape = [n_samples]

Input data target

figure : int

the figure to plot on

title : str, optional

the title to use, optional