Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 141 additions & 9 deletions docs/algorithms/machine-learning/supervised/regressions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,99 @@

<div style="display: flex; flex-direction: column; gap: 10px;">

<!-- Linear Regression -->
<a href="linear" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://www.digitalvidya.com/blog/wp-content/uploads/2019/03/Linear-Regression.jpg" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<!-- AdaBoost Regression -->
<a href="adaboost" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://www.kdnuggets.com/wp-content/uploads/arya_implementing_adaboost_scikitlearn_1.png" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Linear Regression</h2>
<p style="font-size: 16px;">Understanding the relationship between two variables.</p>
<p style="font-size: 12px;">📅 2025-01-19 | ⏱️ 2 mins</p>
<h2 style="margin: 0; font-size: 20px;">AdaBoost Regression</h2>
<p style="font-size: 16px;">Iteratively correcting errors to improve accuracy</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Bayesian Regression -->
<a href="bayesian" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnEy8tFATNDlTV8bM0Qi6jAOXbTsSfN1DPWg&s" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<img src="https://imgs.search.brave.com/3JjXAljvJ5B-HNQSAgxPF3UGnVMwDpos_PbUPs9zzCE/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9ncmVn/b3J5Z3VuZGVyc2Vu/LmNvbS9pbWFnZS9s/aW5iYXllcy9vbHNf/YmF5ZXNfY29tcGFy/aXNvbi5wbmc" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Bayesian Regression</h2>
<p style="font-size: 16px;">Infusing uncertainty with predictions for smarter decision-making.</p>
<p style="font-size: 12px;">📅 2025-01-19 | ⏱️ 3 mins</p>
</div>
</a>
<!-- logistic regression -->
<a href="logistic-regression" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">

<!-- Decision Tree Regression -->
<a href="decision-tree" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/RoUzVZWl0W0U0DhQj2l30psdD8KGh-5OYXrMIbocSPE/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9tbGph/ci5jb20vYmxvZy92/aXN1YWxpemUtZGVj/aXNpb24tdHJlZS9z/dXBlcnRyZWVfY2xh/c3NpZmljYXRpb24u/anBn" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Decision Tree Regression</h2>
<p style="font-size: 16px;">Making decisions based on feature values to predict outcomes in a clear, interpretable way</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 4 mins</p>
</div>
</a>

<!-- Elastic Net Regression -->
<a href="elastic-net" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/guPuCAmuSVxNuDT5c6xw45Zf4Z3ODoALkVsEGpta6Jo/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9wcmV2/aWV3LnJlZGQuaXQv/bWF3c2Jyb3MwYnY0/MS5wbmc_d2lkdGg9/NDI0JmZvcm1hdD1w/bmcmYXV0bz13ZWJw/JnM9MTkxODEyZDAx/ZTZkMzNiYWVlMWZm/NjVhODg3OTExYzUy/ODYzMDNhYg" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Elastic Net Regression</h2>
<p style="font-size: 16px;">Balancing feature selection and regularization for optimal prediction</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Gradient Boosting Regression -->
<a href="gradient-boosting" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/e4uSEGWkDhh_g5RSmHm8cMeUQSqxFEMrVyoqsm8aXMk/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9pbnNp/ZGVsZWFybmluZ21h/Y2hpbmVzLmNvbS93/cC1jb250ZW50L3Vw/bG9hZHMvMjAyMi8w/Ny9maWcyLjAwMS03/Njh4NDMyLmpwZWc" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Gradient Boosting Regression</h2>
<p style="font-size: 16px;">Builds strong models by correcting weak learners.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Huber Regression -->
<a href="huber" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/1Am0IyqGQWRqMCO8Teu2_-Y_CJbhYOs_1ok3agGxIDs/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9mYXN0/ZXJjYXBpdGFsLmNv/bS9pL1JvYnVzdC1y/ZWdyZXNzaW9uLS1S/b2J1c3RpZnlpbmct/TW9kZWxzLWFnYWlu/c3QtSGV0ZXJvc2tl/ZGFzdGljaXR5LS1U/aGUtSHViZXItTG9z/cy1GdW5jdGlvbi1h/bmQtSXRzLUFwcGxp/Y2F0aW9uLndlYnA" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Huber Regression</h2>
<p style="font-size: 16px;">Balances squared and absolute loss for robustness.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- K-Nearest Neighbors Regression -->
<a href="k-nearest-neighbor" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/vWavelzSf-YOBarHPSRzRI9WJxeC8HH0Zx869l-WbWg/rs:fit:860:0:0:0/g:ce/aHR0cDovL2RhdGFn/eS5pby93cC1jb250/ZW50L3VwbG9hZHMv/MjAyMi8wMi9TaG93/aW5nLXRoZS1maXZl/LWNsb3Nlc3QtbmVp/Z2hib3JzLWluLUtO/Ti1pbi1QeXRob24t/U2tsZWFybi5wbmc" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">K Nearest Neighbors Regression</h2>
<p style="font-size: 16px;">KNN predicts by averaging the nearest neighbors</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 3 mins</p>
</div>
</a>

<!-- Lasso Regression -->
<a href="lasso" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/JFuCNLK6f9pZgWSfY_glFBL0k2Y5_C5Riks41qRRNuk/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9zY2lr/aXQtbGVhcm4ub3Jn/L3N0YWJsZS9faW1h/Z2VzL3NwaHhfZ2xy/X3Bsb3RfbGFzc29f/bGFyc19pY18wMDEu/cG5n" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Lasso Regression</h2>
<p style="font-size: 16px;">Lasso shrinks coefficients, promoting sparsity.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Linear Regression -->
<a href="linear" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://www.digitalvidya.com/blog/wp-content/uploads/2019/03/Linear-Regression.jpg" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Linear Regression</h2>
<p style="font-size: 16px;">Understanding the relationship between two variables.</p>
<p style="font-size: 12px;">📅 2025-01-19 | ⏱️ 2 mins</p>
</div>
</a>


<!-- Logistic regression -->
<a href="logistic" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://static.javatpoint.com/tutorial/machine-learning/images/logistic-regression-in-machine-learning.png" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Logistic Regression</h2>
Expand All @@ -31,4 +103,64 @@
</div>
</a>

<!-- Neural Network Regression -->
<a href="neural-network" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/FjA-XTLnW25Hn4W4oxqSs8glDkk78OmFblWmtI_3U8Y/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly93d3cu/c2NhbGVyLmNvbS90/b3BpY3MvaW1hZ2Vz/L211bHRpcGxlLWxp/bmVhci1yZWdyZXNz/aW9uLTEud2VicA" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Neural Network Regression</h2>
<p style="font-size: 16px;">Neural Networks model complex, non-linear relationships.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 3 mins</p>
</div>
</a>

<!-- Polynomial Regression -->
<a href="polynomial" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/wka7xemTCTdjBuAmYwXtmetvAhvA7Bm5PVM5Be-EDTs/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5nZWVrc2Zvcmdl/ZWtzLm9yZy93cC1j/b250ZW50L3VwbG9h/ZHMvMjAyMzA2MDIy/MjEwMDUvZG93bmxv/YWQtKDIpLnBuZw" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Polynomial Regression</h2>
<p style="font-size: 16px;">Captures non-linear trends with higher-degree terms.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Random Forest Regression -->
<a href="random-forest" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/Ic7HjHpRSPASd7LBnaPXmnX53j6xs1J-x47X5eDGrP8/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5nZWVrc2Zvcmdl/ZWtzLm9yZy93cC1j/b250ZW50L3VwbG9h/ZHMvMjAyNDAxMzAx/NjI5MzgvcmFuZG9t/LndlYnA" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Random Forest Regression</h2>
<p style="font-size: 16px;">Random Forest aggregates many decision trees for better accuracy.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 3 mins</p>
</div>
</a>

<!-- Ridge Regression -->
<a href="ridge" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/onukt8IRIna4peTmGRDaS72AtRoPOk0gAJp9jbfrXc4/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5nZWVrc2Zvcmdl/ZWtzLm9yZy93cC1j/b250ZW50L3VwbG9h/ZHMvMjAyNDA2MTEx/ODU3NDAvVW5kZXJz/dGFuZGluZy1SaWRn/ZS1SZWdyZXNzaW9u/LWNvcHkud2VicA" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Ridge Regression</h2>
<p style="font-size: 16px;">Ridge applies regularization to prevent overfitting.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- Support Vector Regression -->
<a href="support-vector" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/fET6OovqwHmnyUQZyk1HueiBVxKm6LL-VUM5SAB3xiA/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9jZG4u/YW5hbHl0aWNzdmlk/aHlhLmNvbS93cC1j/b250ZW50L3VwbG9h/ZHMvMjAyNC8wNS9p/bWFnZS0zNzUucG5n" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">Support Vector Regression</h2>
<p style="font-size: 16px;">Finds the optimal line with a balance between margin and accuracy.</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

<!-- XGBoost Regression -->
<a href="xg-boost" style="padding: 0 2px 0 16px; background-color: rgba(39, 39, 43, 0.4); border: 1px solid rgba(76, 76, 82, 0.4); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s; display: flex; align-items: center;">
<img src="https://imgs.search.brave.com/TtX7gPev06y2WV9NUXm9GEmKa3W27o97YfMuj1G-_og/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9mb3Jl/Y2FzdGVneS5jb20v/aW1nL3hnYm9vc3Qt/cmVncmVzc2lvbi1w/eXRob24tdHV0b3Jp/YWwvdHJ1ZS12cy1w/cmVkaWN0ZWQtcGxv/dC5wbmc" alt="" style="width: 300px; height: 150px; object-fit: cover; border-radius: 10px;" />
<div style="padding: 15px;">
<h2 style="margin: 0; font-size: 20px;">XGBoost Regression</h2>
<p style="font-size: 16px;">Improves predictions using gradient boosting and regularization</p>
<p style="font-size: 12px;">📅 2025-01-27 | ⏱️ 2 mins</p>
</div>
</a>

</div>
Loading