New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No convergence #27
Comments
I think you are passing Something like this should work: fs.readFile('traineddata.txt', 'utf8', function(err, content){
var data = S(content.trim()).lines().map(function(line){
line = line.split(',').map(function(item){ return parseFloat(item); });
return [ line.slice(0,-1) , line.slice(-1)[0]];
});
var clf = new svm.SVM();
clf.train(data).done(function () {
var prediction = clf.predictSync(input);
});
}); |
I'm having this same issue. I've triple checked that all my numbers are actual numbers. Here's my trainer code. At this point I'm just trying to get this library to do anything at all so I'm just copy/pasting from examples. Data is fetched from database so I'm not using
Here's what my
|
Please check your data |
@nicolaspanel check it for what? |
Don't know if this helps, but i had the same issue and I found out that there was a problem with the reduction part of the algorithm with PCA. The error appears in the Single Value Decomposition procedure. So to bypass the error I skipped the reduction step: { reduce : false } |
Hello.
I am getting this error
node_modules/numeric/numeric-1.2.6.js:4340 throw 'Error: no convergence.'
I passed this data https://raw.githubusercontent.com/mailgun/talon/master/talon/signature/data/train.data
where the last position is the expected outcome.
This is the code that throws the error.
Any advice about how can I fix it?
The text was updated successfully, but these errors were encountered: