{"id":21492854,"url":"https://github.com/kevin-kip/py-linear-regression","last_synced_at":"2025-03-17T11:27:44.111Z","repository":{"id":176340279,"uuid":"145217246","full_name":"Kevin-Kip/py-linear-regression","owner":"Kevin-Kip","description":"A basic implementation of linear regression in python 3.6","archived":false,"fork":false,"pushed_at":"2018-09-01T16:54:20.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T21:18:06.409Z","etag":null,"topics":["algorithms","linear-regression","machine-learning","python","python3-6"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Kevin-Kip.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":"2018-08-18T12:12:33.000Z","updated_at":"2019-10-11T12:24:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"46c55cba-638b-4441-8fd1-e589fa23d6b7","html_url":"https://github.com/Kevin-Kip/py-linear-regression","commit_stats":null,"previous_names":["kevin-kip/py-linear-regression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2Fpy-linear-regression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2Fpy-linear-regression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2Fpy-linear-regression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kevin-Kip%2Fpy-linear-regression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kevin-Kip","download_url":"https://codeload.github.com/Kevin-Kip/py-linear-regression/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244024192,"owners_count":20385390,"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":["algorithms","linear-regression","machine-learning","python","python3-6"],"created_at":"2024-11-23T15:33:50.039Z","updated_at":"2025-03-17T11:27:44.078Z","avatar_url":"https://github.com/Kevin-Kip.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Linear Regression (in Python)\nThis is a basic implementation  of Linear Regression.\n\nThe basic formula is `y = mx + b`, where:\n1. y is the output,\n2. m is the slope of the line,\n3. x is the input and\n4. b is the y-intercept.\n\n## Easy, Right?\nYes, Linear Regression is the most basic of all.\n\n## Solving mysteries\nSince `x` is what the user inputs, and `y` is what the algorithm spits out, \"what is m and b\" you may ask?\n\nWell:\n`m = sum of (eachX - meanOfX)*(eachY - sumOfY) / sum of(square of (eachX - meanOfX))`\n`b = meanOfY - (m * meanOfX)`\n\n## You wanna try code?\n1. CLone download the repo\n2. navigate to the root directory\n3. run in terminal `python main.py`\n\nYou will be prompted to input a number and you will receive a prediction(float).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-kip%2Fpy-linear-regression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin-kip%2Fpy-linear-regression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-kip%2Fpy-linear-regression/lists"}