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

ml-kernel

Package Overview
Dependencies
Maintainers
7
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-kernel - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

5

History.md

@@ -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 @@ ==================

2

package.json
{
"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;

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