{"id":23679676,"url":"https://github.com/msikorski93/linear-regression-from-scratch","last_synced_at":"2026-05-08T01:34:03.571Z","repository":{"id":157711372,"uuid":"633604426","full_name":"msikorski93/Linear-Regression-From-Scratch","owner":"msikorski93","description":"Different solutions of linear and polynomial regression made from scratch.","archived":false,"fork":false,"pushed_at":"2024-12-29T16:38:47.000Z","size":1006,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T17:25:31.966Z","etag":null,"topics":["from-scratch","linear-regression","numpy","polynomial-regression","tensorflow"],"latest_commit_sha":null,"homepage":"","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/msikorski93.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-27T21:58:08.000Z","updated_at":"2024-12-29T16:38:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c922783-5939-4583-910a-033a304b1fd0","html_url":"https://github.com/msikorski93/Linear-Regression-From-Scratch","commit_stats":null,"previous_names":["msikorski93/linear-regression-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLinear-Regression-From-Scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLinear-Regression-From-Scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLinear-Regression-From-Scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLinear-Regression-From-Scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msikorski93","download_url":"https://codeload.github.com/msikorski93/Linear-Regression-From-Scratch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727052,"owners_count":19687098,"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":["from-scratch","linear-regression","numpy","polynomial-regression","tensorflow"],"created_at":"2024-12-29T17:53:44.703Z","updated_at":"2026-01-01T09:30:16.065Z","avatar_url":"https://github.com/msikorski93.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear-Regression-From-Scratch\n![ alt text ](https://img.shields.io/badge/license-MIT-green?style=\u0026logo=)\n![ alt text ](https://img.shields.io/badge/-Jupyter-F37626?logo=Jupyter\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-NumPy-013243?logo=Numpy\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-TensorFlow-FF6F00?logo=TensorFlow\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-Keras-D00000?logo=Keras\u0026logoColor=white)\n\nLinear and polynomial regression solutions made from scratch using TensorFlow 1 framework.\n\n### New notebook for January 2025\n\nLinear regression solutions built from scratch, without using fancy frameworks (only NumPy was implemented). We evaluated the performances with basic regression metrics as below:\n\n|           Model           |    MSE   |    MAE   |    R²    |    RSS   |   Slope  | Intercept |\n|:-------------------------:|:--------:|:--------:|:--------:|:--------:|:--------:|:---------:|\n|      Gradient Descent     | 0.056114 | 0.208579 | 0.863454 | 6.733636 | 2.046441 | 11.358466 |\n| Ordinary Least Squares #1 | 0.056114 | 0.20858  | 0.863454 | 6.733636 | 2.046379 | 11.358499 |\n| Ordinary Least Squares #2 | 0.056114 | 0.20858  | 0.863454 | 6.733636 | 2.046379 | 11.358499 |\n|        Scikit-Learn       | 0.056114 | 0.20858  | 0.863454 | 6.733636 | 2.046379 | 11.358499 |\n\nWe proved that our custom models are valid and accurate alternatives to the scikit-learn model, with virtually no noticeable difference in performance or output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsikorski93%2Flinear-regression-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsikorski93%2Flinear-regression-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsikorski93%2Flinear-regression-from-scratch/lists"}