
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Responsive generalized linear models in pure Javascript. This tool is useful for responsive feedback when doing data cleansing or adjusting parameters that actually change the data.
The purpose of this library is to have one self contained generalized linear model library. Other javascript libraries can be used for to create additional models. See the execellent brain library for neural networks and classifier.js library for Bayesian classifiers.
var glm_model = glm.GLM(GLM.families.Gaussian());
var feature_vectors = [[1], [2]];
var target_values = [1, 2];
glm_model.fit(target_values, feature_vectors);
We will soon have support for regularization and Probit regression. After this, we plan on optimizing the runtime performance of the system. It would be neat to have support for MAP or fully Bayesian GLMs, but we currently don't see any reason to work on this functionality.
API changes will probably be made to make GLM.js more in line with the other popular Javascript Machine Learning libraries.
There is one main function called GLM which expects a distribution to be passed in to it. The families can be found in the families attribute of this GLM function. For example: GLM.families.Gaussian() will initialize a gaussian distribution object.
This is essentially a port of a python GLM implementation that uses the iteratively reweighted least squares algorithm in the excellent statsmodels library.
$ npm install node
$ node
> var glm = require('glm');
Just include 'glm.js' as a script in your HTML code.
Run python -m SimpleHTTPServer
in the root of this repo and navigate your browser to http://localhost:8000/examples/
To compile, first install the dependencies with npm and then run make. To test, run make test
.
FAQs
Generalized Linear Models
The npm package glm receives a total of 156 weekly downloads. As such, glm popularity was classified as not popular.
We found that glm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.