ml-logistic-regression
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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) |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13959
0