Skip to content

Commit

Permalink
Merge pull request #378 from code-dot-org/FixBuilds
Browse files Browse the repository at this point in the history
STAR-1608: Fix missing dependency. Use @code-dot-org fork of svm
  • Loading branch information
aaronwaggener authored Sep 9, 2021
2 parents f8a4386 + 7a38394 commit 0d22ebf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/SVMTrainer.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0d22ebf

Please sign in to comment.