erelsgl / limdu

Machine-learning for Node.js
GNU Lesser General Public License v3.0
1.05k stars 99 forks source link

CrossValidation example issue #37

Closed silentrob closed 8 years ago

silentrob commented 8 years ago

limdu.utils.test(...) does not seem to exist, is there a new API to test the cross validation.

erelsgl commented 8 years ago

I will check this in a week. Thanks for notifying.

silentrob commented 8 years ago

I see it is removed here: https://github.com/erelsgl/limdu/blob/master/utils/index.js#L8 I'm was excited to see there is a confusion matrix supplied now in Recall!

vaskonov commented 8 years ago

@silentrob, trainAndTest were moved to nlu-server repository as more data-oriented routine. PrecisionRecall.js does have confusion matrix implementation. Please let me know if you have further questions.

vaskonov commented 8 years ago

@silentrob, Please take a look at classifiers/svm/SvmLinearDemo.js

Here you can find an example how to define SvmLinear classifier. Let me know if it's not helpfull.

silentrob commented 8 years ago

Just to be clear, I was following the example on the main readme and ran into the problem. I was looking more specifically for an example that does folding and cross validation. The SVM demo looks great, but not want I needed (yet). The nlu-server wouldn't run last time I tried either.

vaskonov commented 8 years ago

I've added SvmLinear example that uses cross-validation. Please take a look classifiers/svm/SvmLinearDemo.js

silentrob commented 8 years ago

Oh that looks great, thanks!