GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on July 24, 2024

from limdu.

corradodebari avatar corradodebari commented on July 24, 2024

Hi. Sure, we've never been in touch before. I'm referring to documentation that talks about SVM wrapper to avoid quadratic progression in learning time.

from limdu.

erelsgl avatar erelsgl commented on July 24, 2024

from limdu.

 avatar commented on July 24, 2024

Ofc, god I really am loosing my mind...

from limdu.

corradodebari avatar corradodebari commented on July 24, 2024

I'm working on Windows 10 (x64). If I run svm_perf_learn I've got:
Not enough input parameters!
Anyway I've used native libraries for textract in the same path and this one works.
Looking in the source code on-line, the check:
if (!SvmPerf.isInstalled()) {
var msg = "Cannot find the executable 'svm_perf_learn'. Please download it from the SvmPerf website, and put a link to it in your path.";
console.error(msg)
throw new Error(msg);
}
it will never be false, because SvmPerf.isInstalled() always return true.
It seems to me that what I get from npm is not aligned to source code.

from limdu.

vaskonov avatar vaskonov commented on July 24, 2024

@corradodebari, please, open the following folder limdu/classifiers/svm
and run node SvmPerfDemo.js
and print here the output.
Thank you.

from limdu.

corradodebari avatar corradodebari commented on July 24, 2024

This the output:

C:\Users\c\Desktop\package\classifiers\svm>svm_perf_learn

Not enough input parameters!

(more)

SVM-struct learning module: SVM-perf, V3.00, 15.07.2009
^C
C:\Users\c\Desktop\package\classifiers\svm>node SvmPerfDemo.js
a: No such file or directory
Cannot find the executable 'svm_perf_learn'. Please download it from the SvmPerf website, and put a link to it in your path.
C:\Users\c\Desktop\package\classifiers\svm\SvmPerf.js:29
throw new Error(msg);
^

Error: Cannot find the executable 'svm_perf_learn'. Please download it from the SvmPerf website, and put a link to it in your path.
at Object.SvmPerf (C:\Users\c\Desktop\package\classifiers\svm\SvmPerf.js:29:10)
at Object. (C:\Users\c\Desktop\package\classifiers\svm\SvmPerfDemo.js:16:18)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)

C:\Users\c\Desktop\package\classifiers\svm>

from limdu.

vaskonov avatar vaskonov commented on July 24, 2024

@corradodebari, I think you can try to update the environment variable in Windows and to include the path to the svm_perf_learn, alternativelly you can try to copy svm_perf_learn to %SystemRoot%\system32
and rerun node SvmPerfDemo.js

from limdu.

corradodebari avatar corradodebari commented on July 24, 2024

Hi. Finally I've found the issue.
In SvmPerf.js the checking of svm_perf_learn.exe is done executing this command:
var result = execSync("svm_perf_learn -c 1 a");
the fault is related to the fact that trainingSet file "a" doesn't exist.
Modifing in this way:
var result = execSync("svm_perf_learn");
it works.

from limdu.

erelsgl avatar erelsgl commented on July 24, 2024

I implemented your change. Thanks for the input.

from limdu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.