{"id":18849073,"url":"https://github.com/gnlow/ml-pca-perf","last_synced_at":"2025-09-11T08:36:34.015Z","repository":{"id":138830879,"uuid":"282089192","full_name":"gnlow/ml-pca-perf","owner":"gnlow","description":"Benchmark test for method options of ml-pca package","archived":false,"fork":false,"pushed_at":"2020-07-24T02:04:09.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-30T01:51:22.465Z","etag":null,"topics":["ml-pca","pca"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-24T00:59:40.000Z","updated_at":"2020-07-25T02:21:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f30532c-bf3e-42fe-94a9-e5b8b473587b","html_url":"https://github.com/gnlow/ml-pca-perf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnlow/ml-pca-perf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fml-pca-perf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fml-pca-perf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fml-pca-perf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fml-pca-perf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnlow","download_url":"https://codeload.github.com/gnlow/ml-pca-perf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fml-pca-perf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274602328,"owners_count":25315199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ml-pca","pca"],"created_at":"2024-11-08T03:18:17.900Z","updated_at":"2025-09-11T08:36:33.966Z","avatar_url":"https://github.com/gnlow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ml-pca-perf\nBenchmark test for method options of [ml-pca package](https://github.com/mljs/pca)\n## Method Benchmark test\n`covarianceMatrix` is the fastest.  \nTested in RunKit + npm\n| method                     |   hz |\n|----------------------------|-----:|\n| `SVD`                      | 3099 |\n| `covarianceMatrix`         | 6405 |\n| `NIPALS`                   |  220 |\n| `NIPALS, {nCompNIPALS: 4}` |  129 |\n## Result (`pca.getExplainedVariance()`)\n### `SVD`\n```json\n[0.9246187232017269, 0.05306648311706793, 0.01710260980792975, 0.005212183873275375]\n```\n### `covarianceMatrix`\n```json\n[0.9246187232017269, 0.05306648311706785, 0.017102609807929704, 0.005212183873275558]\n```\n### `NIPALS`\n```json\n[0.9457223216899879, 0.05427767831001216]\n```\n### `NIPALS, {nCompNIPALS: 4}`\n```json\n[0.9246187232017233, 0.053066483117027, 0.017102609807958833, 0.005212183873290879]\n```\n## Reference\n- [The NIPALS Algorithm](http://www.statistics4u.com/fundstat_eng/dd_nipals_algo.html)\n  \u003e The NIPALS Algorithm gives more numerically accurate results when compared with the SVD of the covariance matrix, but is slower to calculate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fml-pca-perf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnlow%2Fml-pca-perf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fml-pca-perf/lists"}