{"id":21479313,"url":"https://github.com/bambooom/multi-linrg","last_synced_at":"2025-03-17T08:42:16.792Z","repository":{"id":118775405,"uuid":"51593234","full_name":"bambooom/multi-linrg","owner":"bambooom","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-12T15:24:08.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T18:15:39.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bambooom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-12T14:36:46.000Z","updated_at":"2016-02-12T14:47:16.000Z","dependencies_parsed_at":"2023-05-01T06:12:55.638Z","dependency_job_id":null,"html_url":"https://github.com/bambooom/multi-linrg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bambooom%2Fmulti-linrg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bambooom%2Fmulti-linrg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bambooom%2Fmulti-linrg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bambooom%2Fmulti-linrg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bambooom","download_url":"https://codeload.github.com/bambooom/multi-linrg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244004156,"owners_count":20382333,"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-23T11:24:36.356Z","updated_at":"2025-03-17T08:42:16.762Z","avatar_url":"https://github.com/bambooom.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## multivariate linear regression\n\n`y = w0 + w1 * x1 + w2 * x2 + w3 * x3`\n\n* Use two methods to calculate w0,w1,w2,w3:\n  * Explicit analytical solution by matrix: ols_matrix\n    * 公式 [ols wiki](https://en.wikipedia.org/wiki/Ordinary_least_squares)\n    * 原理是使SRR最小化, 得到的是 ols estimator\n  * stochastic gradient descent: sgd\n    * 参考 [Andrew Ng 的 notes](http://cs229.stanford.edu/notes/cs229-notes1.pdf)\n* files:\n  * 数据: `data.csv`\n  * 开发文档: [multi-linrg.ipynb](https://github.com/bambooom/multi-linrg/blob/master/multi-linrg.ipynb)\n  * 代码: [multi-linrg.py](https://github.com/bambooom/multi-linrg/blob/master/multi-linrg.py)\n* Solutions:\n\n```\n1st method - analytical solution by matrix\nw0 = 2.030762\nw1 = 2.973967\nw2 = -0.541390\nw3 = 0.971329\n2nd method - stochastic gradient descent\nw0 = 2.030762\nw1 = 2.973971\nw2 = -0.541381\nw3 = 0.971339\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbambooom%2Fmulti-linrg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbambooom%2Fmulti-linrg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbambooom%2Fmulti-linrg/lists"}