Skip to content

Commit 0d22ebf

Browse files
Merge pull request #378 from code-dot-org/FixBuilds
STAR-1608: Fix missing dependency. Use @code-dot-org fork of svm
2 parents f8a4386 + 7a38394 commit 0d22ebf

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"remark-rehype": "^5.0.0",
8686
"sinon": "^7.5.0",
8787
"style-loader": "^1.0.0",
88-
"svm": "uponthesun/svmjs",
88+
"@code-dot-org/svm": "^0.1.1",
8989
"url-loader": "^2.2.0",
9090
"webpack": "4.19.1",
9191
"webpack-bundle-analyzer": "^3.6.0",

src/utils/SVMTrainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const svmjs = require('svm'); // https://github.com/karpathy/svmjs
1+
const svmjs = require('@code-dot-org/svm');
22
import {ClassType} from '../oceans/constants'
33

44
const SVM_PARAMS = {maxiter: 500}; // See https://github.com/karpathy/svmjs/blob/b75b71289dd81fc909a5b3fb8b1caf20fbe45121/lib/svm.js#L27

yarn.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
remark-stringify "^6.0.0"
3030
unified "^7.0.0"
3131

32+
"@code-dot-org/svm@^0.1.1":
33+
version "0.1.1"
34+
resolved "https://registry.yarnpkg.com/@code-dot-org/svm/-/svm-0.1.1.tgz#c3575bdee2ae536c64c54c9cb9deffa92c6beb6a"
35+
integrity sha512-j9wMvatjeo6HDI9Q2oDBIIaZj9mIMZkQXl04h5I6yuXyCEJrkULn2Yophxv/6f2DtSVZRxYpoQJkFGlXB37Gww==
36+
3237
"@fortawesome/fontawesome-common-types@^0.2.25":
3338
version "0.2.25"
3439
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz#6df015905081f2762e5cfddeb7a20d2e9b16c786"
@@ -8326,10 +8331,6 @@ supports-color@^5.3.0, supports-color@^5.5.0:
83268331
dependencies:
83278332
has-flag "^3.0.0"
83288333

8329-
svm@uponthesun/svmjs:
8330-
version "0.1.0"
8331-
resolved "https://codeload.github.com/uponthesun/svmjs/tar.gz/c58634881d214c854cd2a5bef1b4efd14a8997f8"
8332-
83338334
symbol-tree@^3.2.2:
83348335
version "3.2.4"
83358336
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"

0 commit comments

Comments
 (0)