{"id":19266990,"url":"https://github.com/mljs/generate-dataset","last_synced_at":"2026-01-23T07:07:07.275Z","repository":{"id":57298971,"uuid":"102334124","full_name":"mljs/generate-dataset","owner":"mljs","description":"Generate synthetic datasets for testing","archived":false,"fork":false,"pushed_at":"2020-08-21T19:31:34.000Z","size":219,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-06T23:06:40.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mljs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-04T07:52:55.000Z","updated_at":"2021-12-01T01:05:01.000Z","dependencies_parsed_at":"2022-08-26T18:12:42.117Z","dependency_job_id":null,"html_url":"https://github.com/mljs/generate-dataset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mljs/generate-dataset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fgenerate-dataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fgenerate-dataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fgenerate-dataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fgenerate-dataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/generate-dataset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fgenerate-dataset/sbom","scorecard":{"id":653445,"data":{"date":"2025-08-11","repo":{"name":"github.com/mljs/generate-dataset","commit":"4c2179889574871d81924bab7546bfe7e2c8c590"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T14:07:05.287Z","repository_id":57298971,"created_at":"2025-08-21T14:07:05.287Z","updated_at":"2025-08-21T14:07:05.287Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-09T20:08:57.151Z","updated_at":"2026-01-23T07:07:07.259Z","avatar_url":"https://github.com/mljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ml-generate-dataset\n\n  [![NPM version][npm-image]][npm-url]\n  [![build status][travis-image]][travis-url]\n  [![Test coverage][codecov-image]][codecov-url]\n  [![npm download][download-image]][download-url]\n\n.\n\n## Installation\n```bash\nnpm install --save ml-generate-dataset\n```\n\n## Example\n```js\nvar generateDataset = require('ml-generate-dataset');\n/*\n * this options will be used to create the dataSet, thus permites to create several classes where markers will be\n * the elements with differents distributions between the classes, pay attention to the element with index 1, it has\n * a distribution with means 9.4 and 10.3 for the first and second classes respectivelly\n */\nvar options = {\n    keepDataClass: true,\n    keepCompositionMatrix: true,\n    dummyMatrix: true,\n    seed: 22,\n    classes: [\n        {\n            nbSample: 500,\n            elements: [\n                {\n                    index: 0,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 9.4,\n                            standardDesviation: 0.1\n                        }\n                    }\n                },\n                {\n                    index: 1,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 9.4,\n                            standardDesviation: 0.1\n                        }\n                    }\n                },\n                {\n                    index: 2,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 9.4,\n                            standardDesviation: 0.1\n                        }\n                    }\n                }\n            ]\n        },\n        {\n            nbSample: 500,\n            elements: [\n                {\n                    index: 0,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 9.4,\n                            standardDesviation: 0.1\n                        }\n                    }\n                },\n                {\n                    index: 1,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 10.3,\n                            standardDesviation: 0.15\n                        }\n                    }\n                },\n                {\n                    index: 2,\n                    distribution: {\n                        name: 'normal',\n                        parameters: {\n                            mean: 9.4,\n                            standardDesviation: 0.1\n                        }\n                    }\n                }\n            ]\n        }\n    ]\n};\n// the pureElements matrix could be whatever you want like NMR or IR spectra.\nvar pureElements = [\n    [0, 0, 0, 1, 0, 0, 0],\n    [0, 0, 0, 0, 0, 1, 0],\n    [0, 1, 0, 0, 0, 0, 0]\n];\n/* the rows of pureElements matrix will be linear combined like:\n * var pureElements = [\n *  element A,\n *  element B,\n *  element C,\n *      .\n *      .\n *      .\n *  ];\n *  so each element of dataset is  AA = aA + bB + cC + ...\n *  and the matrix composition contain those percentages\n */\nvar dataset = generateDataset(pureElements, options);\n// now you have an object with the dataset, matrix composition and dataClass matrix to do a statistical procedure and debug\n```\n## [API Documentation](https://mljs.github.io/generate-dataset/)\n\n## License\n  [MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-generate-dataset.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/ml-generate-dataset\n[travis-image]: https://img.shields.io/travis/mljs/generate-dataset/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/mljs/generate-dataset\n[codecov-image]: https://img.shields.io/codecov/c/github/mljs/generate-dataset.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/mljs/generate-dataset\n[download-image]: https://img.shields.io/npm/dm/ml-generate-dataset.svg?style=flat-square\n[download-url]: https://www.npmjs.com/package/ml-generate-dataset\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fgenerate-dataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fgenerate-dataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fgenerate-dataset/lists"}