Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.8%) to scientific vocabulary
Keywords
Repository
Principal component analysis
Basic Info
- Host: GitHub
- Owner: mljs
- License: mit
- Language: TypeScript
- Default Branch: main
- Homepage: https://mljs.github.io/pca/
- Size: 1.28 MB
Statistics
- Stars: 101
- Watchers: 16
- Forks: 23
- Open Issues: 8
- Releases: 2
Topics
Metadata Files
README.md
ml-pca
Principal component analysis (PCA).
Maintained by Zakodium
[![NPM version][npm-image]][npm-url] [![build status][ci-image]][ci-url] [](https://doi.org/10.5281/zenodo.7314532) [![npm download][download-image]][download-url]Installation
$ npm install ml-pca
Usage
js
const { PCA } = require('ml-pca');
const dataset = require('ml-dataset-iris').getNumbers();
// dataset is a two-dimensional array where rows represent the samples and columns the features
const pca = new PCA(dataset);
console.log(pca.getExplainedVariance());
/*
[ 0.9246187232017269,
0.05306648311706785,
0.017102609807929704,
0.005212183873275558 ]
*/
const newPoints = [
[4.9, 3.2, 1.2, 0.4],
[5.4, 3.3, 1.4, 0.9],
];
console.log(pca.predict(newPoints)); // project new points into the PCA space
/*
[
[ -2.830722471866897,
0.01139060953209596,
0.0030369648815961603,
-0.2817812120420965 ],
[ -2.308002707614927,
-0.3175048770719249,
0.059976053412802766,
-0.688413413360567 ]]
*/
API Documentation
License
Owner
- Name: ml.js
- Login: mljs
- Kind: organization
- Repositories: 112
- Profile: https://github.com/mljs
Machine learning and numerical analysis tools in JavaScript for Node.js and the Browser
Citation (CITATION.cff)
cff-version: 1.2.0
message: 'If you use this software, please cite it as below.'
title: 'Javascript implementation of Principal Component Analysis (PCA)'
abstract: 'This tool allows to reduce the dimensionality of a dataset by projecting it into a new space where the variance can be explained by most important dimensions using Javascript.'
repository-artifact: http://cheminfo.github.io/jcampconverter/
repository-code: https://github.com/cheminfo/jcampconverter
authors:
- family-names: 'Zasso'
given-names: 'Michaël'
affiliation: 'Zakodium Sàrl, Switzerland'
orcid: 'https://orcid.org/0000-0001-5295-2159'
- family-names: 'Patiny'
given-names: 'Luc'
orcid: 'https://orcid.org/0000-0002-4943-2643'
- family-names: 'Wist'
given-names: 'Julien'
affiliation: 'Universidad del Valle, Cali, Colombia'
orcid: 'https://orcid.org/0000-0002-3416-2572'
- family-names: 'Kostro'
given-names: 'Daniel'
affiliation: 'Zakodium Sàrl, Switzerland'
orcid: 'https://orcid.org/0000-0003-3885-6579'
license: MIT
keywords:
- PCA
- Machine learning
- Unsupervised learning
doi: 10.5281/zenodo.7314532
GitHub Events
Total
- Watch event: 5
- Fork event: 2
Last Year
- Watch event: 5
- Fork event: 2
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Michaël Zasso | t****s@p****m | 62 |
| Jefferson | s****0@h****m | 21 |
| Luc Patiny | l****c@p****m | 10 |
| mljs-bot | 7****t | 2 |
| Julien Wist | j****t | 2 |
| Sebastien Ahkrin | 3****n | 1 |
| Redha Amirouche | h****e@e****z | 1 |
| Paul Pierzchlewicz | P****c | 1 |
| jajoe | j****e@i****r | 1 |
| Santiago Miranda | s****r@p****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 26
- Total pull requests: 16
- Average time to close issues: 3 months
- Average time to close pull requests: about 1 month
- Total issue authors: 18
- Total pull request authors: 12
- Average comments per issue: 2.77
- Average comments per pull request: 2.13
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- lpatiny (5)
- vorg (4)
- targos (2)
- N8python (1)
- CBaptiste (1)
- maasencioh (1)
- sandcobainer (1)
- loretoparisi (1)
- zyxue (1)
- ghost (1)
- Afbcary (1)
- factoidforrest (1)
- paolaguarasci (1)
- jajoe (1)
- Hypercubed (1)
Pull Request Authors
- mljs-bot (3)
- jwist (2)
- lpatiny (2)
- redhaam (1)
- santimirandarp (1)
- PPierzc (1)
- targos (1)
- santifoo (1)
- jobo322 (1)
- Sebastien-Ahkrin (1)
- jajoe (1)
- ghost (1)
- JeffersonH44 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 31,540 last-month
- Total docker downloads: 16
- Total dependent packages: 22
- Total dependent repositories: 76
- Total versions: 17
- Total maintainers: 7
npmjs.org: ml-pca
Principal component analysis
- Homepage: https://github.com/mljs/pca
- License: MIT
-
Latest release: 4.1.1
published over 3 years ago
Rankings
Maintainers (7)
Dependencies
- @types/jest ^27.0.2 development
- eslint ^8.1.0 development
- eslint-config-cheminfo-typescript ^10.2.2 development
- jest ^27.3.1 development
- jest-matcher-deep-close-to ^3.0.2 development
- ml-dataset-iris ^1.2.1 development
- prettier ^2.4.1 development
- rimraf ^3.0.2 development
- ts-jest ^27.0.7 development
- typescript ^4.4.4 development
- ml-matrix ^6.8.0
- JamesIves/github-pages-deploy-action releases/v4 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- zakodium/typedoc-action v2 composite