Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
npm install pierce
I'll be compiling a lot of my commonly used machine learning, signal processing, and statistics JavaScript modules here for easy reference.
var pierce = require('pierce');
// Statistics
var stat = pierce.stat;
var a = [
[1, 5],
[3, 2]
];
console.log(stat.cov(a)); // [ [ 2, -3 ], [ -3, 4.5 ] ] (Covariance matrix)
console.log(stat.mean(a)); // [ 2, 3.5 ] (Mean of each column)
// Machine learning
var LDA = pierce.lda;
var class1 = [
[0, 1],
[1, 2]
];
var class2 = [
[8, 8],
[9, 10]
];
var classifier = new LDA(class1, class2);
var unknownPoints = [
[-1, 0],
[7, 9]
];
console.log(classifier.project(unknownPoints[0])); // -98 (value less than 0 is class 1)
console.log(classifier.project(unknownPoints[1])); // 20 (value greater than 0 is class 2)
// Signal processing
var CSP = pierce.csp;
var a = [
[-1, -1],
[1, 1]
];
var b = [
[-1, 1],
[1, -1]
];
var csp = new CSP(a, b);
console.log(csp.project(a, 2)); // [ [ 1.414, 0 ], [ -1.414, 0 ] ]
console.log(csp.project(b, 2)); // [ [ 0, -1.414 ], [ 0, 1.414 ] ]
FAQs
Machine learning, signal processing, and statistics
The npm package pierce receives a total of 7 weekly downloads. As such, pierce popularity was classified as not popular.
We found that pierce demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.