EdwardRaff / JSAT

Java Statistical Analysis Tool, a Java library for Machine Learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use for LVQ

garazpasir opened this issue · comments

I want to use LVQ with this library, but I don't know how to use it.
I have data to train like this:

Input class target (prediction)
1, 0, 0, 0, 1, 0 1
0, 1, 1, 1, 1, 0 2

and the data to be tested like this:

Input class target (prediction)
0, 1, 0, 0, 0, 1 1
0, 0, 1, 1, 0, 0 2

how to implement LVQ using this library?
Thank you in advance.

Please start with the wiki page , which has some examples on using a classifier and loading data. You will simply need to change the imports/constructor from the example classifier to the LVQ classifier.