JSAT
JSAT copied to clipboard
How to use for LVQ
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.