[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"I2zG3Skg9r":3},"# LeanML\n\nFormally verified machine learning algorithms in [Lean 4](https://lean-lang.org/) with [Mathlib](https://leanprover-community.github.io/mathlib4_docs/).\n\n## Structure\n\n* **Foundations:** Vector spaces, norms, inner products\n* **Optimization:** Loss functions, convexity, gradient descent\n* **Supervised**\n\n  * **Regression.Linear.Origin:** `y = w·x` with OLS optimality proof\n  * **Regression.Linear.Affine:** `y = w·x + b` with OLS optimality proof\n  * **Regression.Polynomial:** Polynomial regression (TBD)\n  * **Regression.Ridge:** L2-regularized regression (TBD)\n  * **Classification.Logistic:** Logistic regression (TBD)\n  * **Classification.SVM:** Support vector machines (TBD)\n  * **Classification.KNN:** K-nearest neighbors (TBD)\n  * **NeuralNets.Perceptron:** Single-layer perceptron (TBD)\n  * **NeuralNets.MLP:** Multi-layer perceptron (TBD)\n  * **NeuralNets.Backprop:** Backpropagation correctness (TBD)\n* **Unsupervised**\n\n  * **Clustering.KMeans:** K-means clustering (TBD)\n  * **DimensionReduction.PCA:** Principal component analysis (TBD)\n\n## Building\n\n```bash\n# Install Lean 4 via elan\ncurl https://elan.lean-lang.org/install.sh -sSf | sh\n\n# Build the project\nlake update\nlake build\n```\n\n",1777138846790]