New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

glm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glm

Generalized Linear Models

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

glm.js

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.

This is essentially a port of a python GLM implementation that uses the iteratively reweighted least squares algorithm in the excellent statsmodels library.

Applications

  • Visualization
  • Data processing
  • Teaching / education linear models

Example usage in browser

Run "python -m SimpleHTTPServer" in the root of this repo and navigate your browser to "http://localhost:8000/examples/"

Example usage in Node

var glm = require('glm');
var glm_model = GLM(GLM.families.Gaussian());
glm_model.fit([1, 2], [[1], [2]]);
console.log(glm_model.predict([3, 4])); // should predict 3 and 4

Compiling

To compile, first install the dependencies with npm and then run make. To test, run "make test".

Keywords

FAQs

Package last updated on 15 Jun 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc