Closed jefffriesen closed 5 years ago
I just tried this library in simple browser and node apps. It failed in the browser (create-react-app) and worked in node.js (version 11)
It depends on ml-matrix, so the problem may be related to https://github.com/mljs/matrix/issues/69
Also related to this closed ticket: https://github.com/mljs/regression-multivariate-linear/issues/7 The author plans to fix it in the next version and also offers a a way to get it working now: https://github.com/mljs/matrix/issues/69#issuecomment-484700654
This will be fixed in the next version with ml-matrix 6.0.0
I'm running into this error using the latest version of this repo and using the examples from the README:
I've tried { intercept: false } which skips over the x.addColumn function call, but run into a different error:
Putting a breakpoint in the source code right after converting
x
to a new Matrix():So clearly new Matrix is converting it. However,
.addColumn
is not on the prototype.I noticed that the dependency for ml-matrix is set up as
"ml-matrix": "^5.1.1"
and that the version of ml-matrix that got installed was 5.3.0. So I forked it, created a pinned version at 5.1.1 (confirmed that I had 5.1.1) but got the same error.However, when I fork your repo and run the test all pass. Does anyone have any suggestions?