{"id":19267021,"url":"https://github.com/mljs/regression-theil-sen","last_synced_at":"2025-04-21T19:32:30.680Z","repository":{"id":57298993,"uuid":"95018474","full_name":"mljs/regression-theil-sen","owner":"mljs","description":"Method for robust fitting a line to a set of points","archived":false,"fork":false,"pushed_at":"2024-05-16T14:35:01.000Z","size":1239,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-15T11:46:39.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mljs.github.io/regression-theil-sen/","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":"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T15:25:14.000Z","updated_at":"2024-06-02T08:19:59.000Z","dependencies_parsed_at":"2024-06-18T23:07:33.143Z","dependency_job_id":null,"html_url":"https://github.com/mljs/regression-theil-sen","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.4444444444444444,"last_synced_commit":"4b6b7ed84765bae4de44bdda315dcdec72b7a860"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-theil-sen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-theil-sen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-theil-sen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-theil-sen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/regression-theil-sen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250120077,"owners_count":21378135,"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:27.983Z","updated_at":"2025-04-21T19:32:30.675Z","avatar_url":"https://github.com/mljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regression-theil-sen\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![npm download][download-image]][download-url]\n\nMethod for robust fitting a line to a set of points.\n\n## Installation\n\n`$ npm i ml-regression-theil-sen`\n\n## Usage\n\n```js\nimport { TheilSenRegression } from 'ml-regression-theil-sen';\n\nvar inputs = [1, 2, 3, 4, 5, 6, 7, 8, 9];\nvar outputs = [2, 3, 4, 20, 6, 7, 8, 9, 10];\n\nvar regression = new TheilSenRegression(inputs, outputs);\nvar y = regression.predict(85);\n\ny === 85;\nregression.toString(3) === 'f(x) = x + 1.00';\n```\n\n## [API Documentation](https://mljs.github.io/regression-theil-sen/)\n\nThe method is well explained on [this article](https://en.wikipedia.org/wiki/Theil%E2%80%93Sen_estimator).\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-regression-theil-sen.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ml-regression-theil-sen\n[travis-image]: https://img.shields.io/travis/mljs/regression-theil-sen/main.svg?style=flat-square\n[travis-url]: https://travis-ci.org/mljs/regression-theil-sen\n[download-image]: https://img.shields.io/npm/dm/ml-regression-theil-sen.svg?style=flat-square\n[download-url]: https://npmjs.org/package/ml-regression-theil-sen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fregression-theil-sen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fregression-theil-sen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fregression-theil-sen/lists"}