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

Commitd40c40b

Browse files
authored
Merge pull request#17 from jay-w-opus/patch-1
Fix README.md
2 parentsce542e2 +ddec429 commitd40c40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const labels = [0, 0, 1, 1];
6464
svm.loadWASM().then((loadedSVM)=> {
6565
// Also you can loadASM() instead of loadWASM()
6666
loadedSVM.train({samples,labels });
67-
const predictedLabel=loadedSVM.predictOne([0.7,0.8]);
67+
const predictedLabel=loadedSVM.predictOne({ sample:[0.7,0.8] });
6868
console.log(predictedLabel)// 0
6969
});
7070
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp