Comparing version 2.1.0 to 2.2.0
@@ -0,1 +1,6 @@ | ||
<a name="2.2.0"></a> | ||
# [2.2.0](https://github.com/mljs/kernel/compare/v2.1.0...v2.2.0) (2016-07-19) | ||
2.1.0 / 2016-06-21 | ||
@@ -2,0 +7,0 @@ ================== |
{ | ||
"name": "ml-kernel", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A factory for kernel functions", | ||
@@ -5,0 +5,0 @@ "main": "./src/kernel.js", |
@@ -32,5 +32,8 @@ 'use strict'; | ||
constructor(type, options) { | ||
this.kernelType = type; | ||
if (type === 'linear') return; | ||
if (typeof type === 'string') { | ||
type = type.toLowerCase(); | ||
var KernelConstructor = kernelType[type]; | ||
@@ -53,2 +56,8 @@ if (KernelConstructor) { | ||
} | ||
if (this.kernelType === 'linear') { | ||
var matrix = new Matrix(inputs); | ||
return matrix.mmul(new Matrix(landmarks).transpose()); | ||
} | ||
const kernelMatrix = new Matrix(inputs.length, landmarks.length); | ||
@@ -55,0 +64,0 @@ var i, j; |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8603
181