{"id":20937572,"url":"https://github.com/jmcheon/ft_linear_regression","last_synced_at":"2026-04-27T14:04:59.631Z","repository":{"id":172798870,"uuid":"647451006","full_name":"jmcheon/ft_linear_regression","owner":"jmcheon","description":"This project is about AI and Machine Learning. A simple, basic machine learning algorithm. A program that predicts the price of a car by using a linear function train with a gradient descent algorithm.","archived":false,"fork":false,"pushed_at":"2024-05-25T11:56:20.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-19T20:22:21.885Z","etag":null,"topics":["data-science","linear-regression","machine-learning","math","python3"],"latest_commit_sha":null,"homepage":"","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/jmcheon.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-05-30T20:13:05.000Z","updated_at":"2024-05-25T11:56:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed2a65a8-26cd-4294-b7a7-ec902d412deb","html_url":"https://github.com/jmcheon/ft_linear_regression","commit_stats":null,"previous_names":["jmcheon/ft_linear_regression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcheon%2Fft_linear_regression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcheon%2Fft_linear_regression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcheon%2Fft_linear_regression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcheon%2Fft_linear_regression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcheon","download_url":"https://codeload.github.com/jmcheon/ft_linear_regression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330323,"owners_count":20274039,"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":["data-science","linear-regression","machine-learning","math","python3"],"created_at":"2024-11-18T22:37:42.637Z","updated_at":"2025-12-27T18:38:11.161Z","avatar_url":"https://github.com/jmcheon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ft_linear_regression - An introduction to machine learning\n\n\u003e_**Summary: In this project, you will implement your first machine learning algorithm.**_\n\n\u003cbr\u003e\n\n## Usage\n1. Prediction before training\n```python\npython3 predict.py\n```\n- output\n```\nType a Km to estimate price: 3421\nEstimated price for km: 3421 is 0.\n```\n2. Train\n- It generates `model.csv` which contains optimized theta values\n```python\npython3 train.py\n```\n\n3. Prediction after training\n```python\npython3 predict.py\n```\n- output\n```\nType a Km to estimate price: 3421\nEstimated price for km: 3421 is 8426.\n```\n\n4. Evaluation\n- Evaluate the model using `r2 score`\n```python\npython3 evaluate.py\n```\n\n6. Visualization\n```python\npython3 plot.py\n```\n\n## Visualization\n\n| Before Training | After Training |\n|:---------------:|:--------------:|\n|![temp_1](https://github.com/jmcheon/ft_linear_regression/assets/40683323/b76255fa-ea88-4426-9534-f5997782b1f0)|![temp_24](https://github.com/jmcheon/ft_linear_regression/assets/40683323/bc800057-35c3-4c48-8e71-640956e34774)|\n\n\n\n\n\u003cbr\u003e\n\n### Animated Training Process\n![scatter_regression](https://github.com/jmcheon/ft_linear_regression/assets/40683323/020074bc-03f0-463a-9863-f0080e9225f3)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcheon%2Fft_linear_regression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcheon%2Fft_linear_regression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcheon%2Fft_linear_regression/lists"}