YiSu Grain
Author

YiSu Grain

A fleeting mayfly in the world, a single grain in the boundless sea.

83
Articles
0
Likes
227
Views
0
Comments
Recent Articles

Latest from YiSu Grain

83 recent articles
YiSu Grain
YiSu Grain
Oct 9, 2024 · Artificial Intelligence

Implementing Linear Regression with scikit-learn and Comparing to Gradient Descent

This article demonstrates how to build a multivariate linear regression model using scikit-learn's LinearRegression class, visualizes the results, and then compares the implementation, parameter optimization, prediction accuracy, and visualization with a manually coded gradient descent approach.

LinearRegressionPythongradient descent
0 likes · 7 min read
Implementing Linear Regression with scikit-learn and Comparing to Gradient Descent
YiSu Grain
YiSu Grain
Sep 29, 2024 · Artificial Intelligence

Finding the ‘Heavenly Path’ of Data Points: A Linear Regression Walkthrough

This article walks through linear regression by visualizing scattered data points, defining the line y = ax + b, deriving the mean‑squared‑error cost function, computing its gradients with the chain rule, and implementing gradient descent in Python to find the optimal parameters.

Linear RegressionPythoncost function
0 likes · 11 min read
Finding the ‘Heavenly Path’ of Data Points: A Linear Regression Walkthrough