Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce542e2

Browse files
committed
docs(README.md): fixing readme
1 parent50aa9e7 commitce542e2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎README.md‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[DEMO](https://mljs.github.io/libsvm/)
1010

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.
1212

1313
What is libsvm?
1414
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';
4040
const svm=newSVM();// ...
4141
```
4242

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-
4943
##Load in the browser
5044
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.
5145

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp