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
- modelGlvqModel that has relevances
(GrlvqModel,GmlvqModel,LgmlvqModel)
- xarray-like, shape = [n_samples, n_features]
Input data
- yarray, shape = [n_samples]
Input data target
- figureint
the figure to plot on
- titlestr, optional
the title to use, optional