diff --git a/package.json b/package.json index 5e0f4d75..9a7df535 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "remark-rehype": "^5.0.0", "sinon": "^7.5.0", "style-loader": "^1.0.0", - "svm": "uponthesun/svmjs", + "@code-dot-org/svm": "^0.1.1", "url-loader": "^2.2.0", "webpack": "4.19.1", "webpack-bundle-analyzer": "^3.6.0", diff --git a/src/utils/SVMTrainer.js b/src/utils/SVMTrainer.js index 322c9186..38886340 100644 --- a/src/utils/SVMTrainer.js +++ b/src/utils/SVMTrainer.js @@ -1,4 +1,4 @@ -const svmjs = require('svm'); // https://github.com/karpathy/svmjs +const svmjs = require('@code-dot-org/svm'); import {ClassType} from '../oceans/constants' const SVM_PARAMS = {maxiter: 500}; // See https://github.com/karpathy/svmjs/blob/b75b71289dd81fc909a5b3fb8b1caf20fbe45121/lib/svm.js#L27 diff --git a/yarn.lock b/yarn.lock index b4fce1cd..39738afc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -29,6 +29,11 @@ remark-stringify "^6.0.0" unified "^7.0.0" +"@code-dot-org/svm@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@code-dot-org/svm/-/svm-0.1.1.tgz#c3575bdee2ae536c64c54c9cb9deffa92c6beb6a" + integrity sha512-j9wMvatjeo6HDI9Q2oDBIIaZj9mIMZkQXl04h5I6yuXyCEJrkULn2Yophxv/6f2DtSVZRxYpoQJkFGlXB37Gww== + "@fortawesome/fontawesome-common-types@^0.2.25": version "0.2.25" 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: dependencies: has-flag "^3.0.0" -svm@uponthesun/svmjs: - version "0.1.0" - resolved "https://codeload.github.com/uponthesun/svmjs/tar.gz/c58634881d214c854cd2a5bef1b4efd14a8997f8" - symbol-tree@^3.2.2: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"