svm-light
2.0.0 • Public • Published SVM Light Multiclass Wrapper for Node.js
Installation
npm install --save svm-light
How To Use
- learn & classify function available. All the functions are promise object. See below.
- example are here
let {learn, classify} = require('svm-light');
learn({
input: 'train.dat',
model: 'model.dat',
data: (data)=> {
console.log(data + '');
},
error: (err)=> {
console.log(err + '');
},
}).then(()=> {
});
classify({
input: 'test.txt',
model: 'model.dat',
result: 'result.txt',
data: (data)=> {
console.log(data + '');
},
error: (err)=> {
console.log(err + '');
}
}).then(()=> {
})
Using Options in Training
- available options
c
: default 0.01
v
: default 1
y
: default 0
p
: default 1
o
: default 2
- more detail info in here
let {learn, classify} = require('svm-light');
learn({
input: 'yeast_4.txt',
model: 'model.dat',
c: 500,
v: 1,
data: (data)=> {
console.log(data + '');
},
error: (err)=> {
console.log(err + '');
},
}).then(()=> {
});
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads