{"id":19267050,"url":"https://github.com/mljs/dataset-iris","last_synced_at":"2025-04-21T19:32:37.763Z","repository":{"id":47181905,"uuid":"60068902","full_name":"mljs/dataset-iris","owner":"mljs","description":"Iris flower data set","archived":false,"fork":false,"pushed_at":"2021-09-09T14:38:26.000Z","size":110,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-13T06:29:15.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mljs.github.io/dataset-iris/","language":"TypeScript","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":"CHANGELOG.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":"2016-05-31T07:48:38.000Z","updated_at":"2022-03-29T14:25:50.000Z","dependencies_parsed_at":"2022-08-20T13:00:27.995Z","dependency_job_id":null,"html_url":"https://github.com/mljs/dataset-iris","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fdataset-iris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fdataset-iris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fdataset-iris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fdataset-iris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/dataset-iris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223876400,"owners_count":17218387,"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","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:09:51.072Z","updated_at":"2025-04-21T19:32:37.756Z","avatar_url":"https://github.com/mljs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dataset-iris\n\n[![NPM version][npm-image]][npm-url]\n[![build status][ci-image]][ci-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\nIris flower data set.\n\n## Installation\n\n`$ npm i ml-dataset-iris`\n\n## Usage\n\n```js\nimport {\n  getClasses,\n  getClassesAsNumber,\n  getCrossValidationSets,\n  getDataset,\n  getDistinctClasses,\n  getNumbers,\n} from 'ml-dataset-iris';\n\nconst dataset = getDataset();\nconsole.log(dataset[0]) // [5.1, 3.5, 1.4, 0.2, 'setosa']\n\nconst numbers = getNumbers();\nconsole.log(numbers[0]) // [5.1, 3.5, 1.4, 0.2]\n\nconst classes = getClasses();\nconsole.log(classes[0]) // setosa\n\nconst classes = getClassesAsNumber();\nconsole.log(classes[0]) // 0\nconsole.log(classes[50]) // 1\nconsole.log(classes[100]) // 2\n\nconst distinctClasses = iris.getDistinctClasses();\nconsole.log(distinctClasses) // ['setosa', 'versicolor', 'virginica']\n\nconst cvSetsByFolds = iris.getCrossValidationSets(7, { idx: 1, by: 'folds' });\nconsole.log(cvSetsByFolds.length) // 7\n\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-dataset-iris.svg\n[npm-url]: https://www.npmjs.com/package/ml-dataset-iris\n[ci-image]: https://github.com/mljs/dataset-iris/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/mljs/dataset-iris/actions?query=workflow%3A%22Node.js+CI%22\n[codecov-image]: https://img.shields.io/codecov/c/github/mljs/dataset-iris.svg\n[codecov-url]: https://codecov.io/gh/mljs/dataset-iris\n[download-image]: https://img.shields.io/npm/dm/ml-dataset-iris.svg\n[download-url]: https://www.npmjs.com/package/ml-dataset-iris\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fdataset-iris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fdataset-iris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fdataset-iris/lists"}