{"id":19267074,"url":"https://github.com/mljs/param-grid","last_synced_at":"2025-10-15T23:59:02.831Z","repository":{"id":57298997,"uuid":"135737071","full_name":"mljs/param-grid","owner":"mljs","description":"Generate variants of option object. Useful for hyper parameter grid search","archived":false,"fork":false,"pushed_at":"2018-06-01T16:09:29.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-05T12:12:36.246Z","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":"2018-06-01T15:53:40.000Z","updated_at":"2018-06-01T16:09:30.000Z","dependencies_parsed_at":"2022-08-26T18:12:43.285Z","dependency_job_id":null,"html_url":"https://github.com/mljs/param-grid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fparam-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fparam-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fparam-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fparam-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/param-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367675,"owners_count":19790294,"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:59.771Z","updated_at":"2025-10-15T23:59:02.773Z","avatar_url":"https://github.com/mljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# param-grid\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\nGenerate a list of possible paramaters combinations. Useful for example for hyper-paramater grid search..\n\n## Installation\n\n`$ npm install --save ml-param-grid`\n\n## Usage\n\n```js\nimport paramGrid from 'ml-param-grid';\n\n// paramGrid is a generator function so it returns an iterator\nfor(let param of paramGrid({\n  param1: ['x', 'y'],\n  param2: [4, 2],\n  param3: true\n}) {\n  console.log(param);\n};\n// result is\n// {param1 : 'x', param2: 4, param3: true}\n// {param1 : 'x', param2: 2, param3: true}\n// {param1 : 'y', param2: 4, param3: true}\n// {param1 : 'y', param2: 2, param3: true}\n\n// Get the result directly as an array\nArray.from(paramGrid({\n  p: [1, 2]\n})); // [{p: 1}, {p: 2}]\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-param-grid.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/ml-param-grid\n[travis-image]: https://img.shields.io/travis/mljs/param-grid/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/mljs/param-grid\n[codecov-image]: https://img.shields.io/codecov/c/github/mljs/param-grid.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/mljs/param-grid\n[download-image]: https://img.shields.io/npm/dm/ml-param-grid.svg?style=flat-square\n[download-url]: https://www.npmjs.com/package/ml-param-grid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fparam-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fparam-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fparam-grid/lists"}