Skip to content

Linear Regression, including on-device learning#43

Merged
jonnor merged 13 commits into
masterfrom
linreg
Jul 7, 2025
Merged

Linear Regression, including on-device learning#43
jonnor merged 13 commits into
masterfrom
linreg

Conversation

@jonnor
Copy link
Copy Markdown
Contributor

@jonnor jonnor commented Jul 7, 2025

Linear regression is a core component of many useful ML tasks. Here is a first attempt at an embedded-optimized implementation, using gradient descent with support for L1+L2 regularization (often called ElasticNet).
Got some assistance from Claude with this code, though it took some heavy-handed guidance and frequent whipping with the core C code. It however did super well in exposing this as a MicroPython module (I gave an existing module as reference), and was very useful in creating some quick but realistic tests.

@jonnor jonnor merged commit 3cf80c5 into master Jul 7, 2025
12 checks passed
@jonnor jonnor deleted the linreg branch July 7, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant