{"id":19267008,"url":"https://github.com/mljs/regression-exponential","last_synced_at":"2025-04-21T19:32:33.139Z","repository":{"id":20348434,"uuid":"89711038","full_name":"mljs/regression-exponential","owner":"mljs","description":"Exponential Regression","archived":false,"fork":false,"pushed_at":"2024-11-01T08:29:15.000Z","size":1240,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-11-01T09:26:34.511Z","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":"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-04-28T13:56:38.000Z","updated_at":"2024-11-01T08:29:18.000Z","dependencies_parsed_at":"2024-05-16T13:43:45.810Z","dependency_job_id":"a9895a83-2907-45c3-8327-fc156e8d2786","html_url":"https://github.com/mljs/regression-exponential","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.2666666666666667,"last_synced_commit":"169e2aeb31d4f4f4472ea7b6346b5964fbff0fbb"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-exponential","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-exponential/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-exponential/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fregression-exponential/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/regression-exponential/tar.gz/refs/heads/main","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:14.761Z","updated_at":"2025-04-21T19:32:33.127Z","avatar_url":"https://github.com/mljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regression-exponential\n\n[![NPM version][npm-image]][npm-url]\n[![build status][ci-image]][ci-url]\n[![npm download][download-image]][download-url]\n\nExponential Regression.\n\n## Installation\n\n`$ npm i ml-regression-exponential`\n\n## Usage\n\nThis calculates parameters A and B for the equation `y = B * e^(A * x)`.\n\n```js\nimport { ExponentialRegression } from 'ml-regression-exponential';\n\nconst x = [0, 1, 2, 3, 4];\nconst y = [1.5, 2.5, 3.5, 5.0, 7.5];\n\nconst regression = new ExponentialRegression(x, y);\n\nregression.A; // 0.391202\nregression.B; // 1.579909\nregression.predict(2); // 3.454825\nregression.toString(3); // f(x) = 1.58 * exp(0.391 * x)\n```\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-regression-exponential.svg\n[npm-url]: https://npmjs.org/package/ml-regression-exponential\n[ci-image]: https://github.com/mljs/regression-exponential/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/mljs/regression-exponential/actions?query=workflow%3A%22Node.js+CI%22\n[download-image]: https://img.shields.io/npm/dm/ml-regression-exponential.svg\n[download-url]: https://npmjs.org/package/ml-regression-exponential\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fregression-exponential","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fregression-exponential","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fregression-exponential/lists"}