Gathering detailed insights and metrics for ml-nearest-vector
Gathering detailed insights and metrics for ml-nearest-vector
Gathering detailed insights and metrics for ml-nearest-vector
Gathering detailed insights and metrics for ml-nearest-vector
npm install ml-nearest-vector
98.6
Supply Chain
79.9
Quality
82.1
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
27 Commits
5 Watching
1 Branches
4 Contributors
Updated on 15 Aug 2018
Minified
Minified + Gzipped
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-23.3%
5,709
Compared to previous day
Last week
-8.1%
39,475
Compared to previous week
Last month
-3.4%
180,237
Compared to previous month
Last year
58.5%
1,735,972
Compared to previous year
1
7
Find the nearest point to a sample point
$ npm install ml-nearest-vector
1import nearestVector, {findNearestVector} from 'ml-nearest-vector'); 2 3const nearestVector = require('ml-nearest-vector'); 4 5let centers = [[1, 2, 1], [-1, -1, -1]]; 6// returns the index of the nearest vector 7nearestVector(centers, [1, 2, 1]) === 0; 8 9// returns the nearest vector itself 10findNearstVector(centers, [1, 2, 1]); // [1, 2, 1]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
77 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More