{"id":28907611,"url":"https://github.com/isratafrin826/linear-regression-ml-algorithm","last_synced_at":"2026-05-10T03:09:07.987Z","repository":{"id":300056481,"uuid":"1005072531","full_name":"IsratAfrin826/Linear-Regression-ML-Algorithm","owner":"IsratAfrin826","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T16:52:33.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T17:29:05.916Z","etag":null,"topics":["googlecolab","matplotlib-pyplot","numpy","pandas"],"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/IsratAfrin826.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,"zenodo":null}},"created_at":"2025-06-19T16:10:30.000Z","updated_at":"2025-06-19T16:52:36.000Z","dependencies_parsed_at":"2025-06-19T17:31:13.135Z","dependency_job_id":"53c9c3b7-32bc-4532-85ab-ecfba6bc8967","html_url":"https://github.com/IsratAfrin826/Linear-Regression-ML-Algorithm","commit_stats":null,"previous_names":["isratafrin826/linear-regression-ml-algorithm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IsratAfrin826/Linear-Regression-ML-Algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsratAfrin826%2FLinear-Regression-ML-Algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsratAfrin826%2FLinear-Regression-ML-Algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsratAfrin826%2FLinear-Regression-ML-Algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsratAfrin826%2FLinear-Regression-ML-Algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IsratAfrin826","download_url":"https://codeload.github.com/IsratAfrin826/Linear-Regression-ML-Algorithm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsratAfrin826%2FLinear-Regression-ML-Algorithm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261153565,"owners_count":23116913,"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":["googlecolab","matplotlib-pyplot","numpy","pandas"],"created_at":"2025-06-21T16:03:41.763Z","updated_at":"2026-05-10T03:09:07.980Z","avatar_url":"https://github.com/IsratAfrin826.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear-Regression-ML-Algorithm\n\n### 📘 Definition:\n\nLinear Regression is a supervised machine learning algorithm used for predicting a continuous dependent variable \n\nbased on one or more independent variables (features). It models the relationship between variables by fitting a \n\nlinear equation to observed data.\n\n\n### What I have done in this project ---\n\n### 1. Load Dataset\n\n**Objective:** Import the dataset to work with.\n\n**Sources:** CSV, Excel, SQL, or web-based datasets.\n\n**Tools:** pandas.read_csv() or similar functions.\n\n### 2. View / Preprocess Dataset\n\n**Objective:** Understand the structure of data and clean it.\n\n**🔍 Data Exploration**\n\nView top rows: data.head()\n\nData types: data.dtypes\n\nShape: data.shape\n\nSummary statistics: data.describe()\n\n**🧹 Data Cleaning**\n\nHandle missing values: fillna(), dropna()\n\nRemove duplicates\n\nConvert categorical to numeric (if needed): One-hot encoding or Label encoding\n\n**📐 Feature Selection**\n\nChoose relevant independent variables (features) and the dependent variable (target).\n\n### 3. Split Dataset\n\n**Objective:** Separate data into training and testing sets to evaluate generalization.\n\n**Tool:** train_test_split() from sklearn.model_selection\n\n### 4. Build the Linear Regression Model\n\n**Objective:** Train the model on the training data.\n\n**Tool:** LinearRegression from sklearn.linear_model\n\n### 5. Test / Evaluation\n\n**Objective:** Make predictions and compare them to actual values.\n\n### 6. Performance Analysis\n\n**Objective:** Quantify how well the model performs.\n\n**📏 Common Metrics:**\n\nMean Absolute Error (MAE)\n\nMean Squared Error (MSE)\n\nRoot Mean Squared Error (RMSE)\n\nR-squared Score (R²)\n\n| Step                 | Description                                  |\n| -------------------- | -------------------------------------------- |\n| Load Dataset         | Import using pandas or other libraries       |\n| View/Preprocess      | Clean data, handle nulls, transform features |\n| Split Dataset        | Training vs testing data                     |\n| Build Model          | Train Linear Regression on training data     |\n| Test/Evaluate        | Predict and compare with actual test data    |\n| Performance Analysis | Use MAE, MSE, RMSE, R² for evaluation        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisratafrin826%2Flinear-regression-ml-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisratafrin826%2Flinear-regression-ml-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisratafrin826%2Flinear-regression-ml-algorithm/lists"}