Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: func is not a function #63

Open
alariej opened this issue Jun 17, 2024 · 0 comments
Open

TypeError: func is not a function #63

alariej opened this issue Jun 17, 2024 · 0 comments

Comments

@alariej
Copy link

alariej commented Jun 17, 2024

Hi, I am getting "TypeError: func is not a function" at:

error += Math.pow(data.y[i] - func(data.x[i]), 2) / weightSquare[i];

when building my Node application.

I'm running a Ubuntu 22.04 server with Node 18.

I have both "ml-levenberg-marquardt": "^4.1.3" and "@types/ml-levenberg-marquardt": "^3.1.3" installed via NPM.

Any idea what I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant