|
8 | 8 |
|
9 | 9 | #[DEMO](https://mljs.github.io/libsvm/) |
10 | 10 |
|
11 | | -Port ofto portlibsvm v3.22 using[emscripten](https://github.com/kripken/emscripten), for usage in thebrowser or nodejs. 2 build targets: asm and WebAssembly. |
| 11 | +Port of libsvm v3.22 using[emscripten](https://github.com/kripken/emscripten)and it targetsbrowser or nodejs using asm and WebAssembly. |
12 | 12 |
|
13 | 13 | What is libsvm? |
14 | 14 | libsvm is a[c++ library](https://github.com/cjlin1/libsvm) developped by Chih-Chung Chang and Chih-Jen Lin that allows to do support vector machine (aka SVM) classification and regression. |
@@ -40,12 +40,6 @@ import { SVM } from 'libsvm-ts'; |
40 | 40 | const svm=newSVM();// ... |
41 | 41 | ``` |
42 | 42 |
|
43 | | -There is an alternative entry point if you want to use asm build. This entrypoint is synchronous. |
44 | | -```js |
45 | | -constSVM=require('libsvm-js/asm'); |
46 | | -constsvm=newSVM();// ... |
47 | | -``` |
48 | | - |
49 | 43 | ##Load in the browser |
50 | 44 | The npm package contains a bundle for the browser that works with AMD and browser globals. There is one bundle for the asm build and another for the web assembly build. They are located in the`dist/browser` directory of the package. You can load them into your web page with a`script` tag. For the web assembly module, make sure that the libsvm.wasm file is served from the same relative path as the js file. |
51 | 45 |
|
|