Skip to content

TypeError: func is not a function #63

@alariej

Description

@alariej

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions