Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-logistic-regression

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-logistic-regression - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

History.md

@@ -0,1 +1,11 @@

<a name="1.0.2"></a>
## [1.0.2](https://github.com/mljs/logistic-regression/compare/v1.0.1...v1.0.2) (2017-07-21)
### Bug Fixes
* Bug fixed ([da247e8](https://github.com/mljs/logistic-regression/commit/da247e8))
<a name="1.0.1"></a>

@@ -2,0 +12,0 @@ ## [1.0.1](https://github.com/mljs/logistic-regression/compare/v1.0.0...v1.0.1) (2017-07-21)

2

lib/logreg.js

@@ -87,3 +87,3 @@ 'use strict';

train(X, Y) {
this.numberClasses = new Set(Y).size;
this.numberClasses = new Set(Y.to1DArray()).size;
this.classifiers = new Array(this.numberClasses);

@@ -90,0 +90,0 @@

{
"name": "ml-logistic-regression",
"version": "1.0.1",
"version": "1.0.2",
"description": "Logistic regression",

@@ -5,0 +5,0 @@ "main": "lib/logreg",

@@ -25,3 +25,3 @@ import Matrix from 'ml-matrix';

train(X, Y) {
this.numberClasses = new Set(Y).size;
this.numberClasses = new Set(Y.to1DArray()).size;
this.classifiers = new Array(this.numberClasses);

@@ -28,0 +28,0 @@

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