Skip to main content

A transparent, pure-math implementation of Multiple Linear Regression using the Normal Equation.

Project description

beta_solver

Python License Status

beta_solver is a personal project where I implement Machine Learning algorithms from scratch to understand the mathematics behind the "black box."

I am currently practicing core algorithms, starting with Linear Regression using the Normal Equation. As I learn and practice more algorithms, I will update this library to include them.

🎯 Project Goal

The goal of this project is not to replace libraries like scikit-learn, but to:

  1. Demystify the math behind ML algorithms.
  2. Implement pure Python/Numpy solutions without high-level wrappers.
  3. Document my learning journey in code.

📐 Current Algorithm: Linear Regression

Right now, the library solves for the coefficient vector $\beta$ using Linear Algebra:

$$\beta = (X^T X)^{-1} (X^T Y)$$

Where:

  • $X$: The input feature matrix.
  • $Y$: The target vector.
  • $\beta$: The resulting coefficients (Intercept + Slopes).

🚀 Installation

You can install beta_solver using pip:

pip install beta_solver

🤝 Contributing

This is a learning repository. If you see a way to optimize the math or make the code cleaner, feel free to open a Pull Request!

📄 License

Distributed under the MIT License. See LICENSE for more information.

👤 Author

Abhish Bondre GitHub: abhishbondre

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beta_solver-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beta_solver-0.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file beta_solver-0.0.1.tar.gz.

File metadata

  • Download URL: beta_solver-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for beta_solver-0.0.1.tar.gz
Algorithm Hash digest
SHA256 773424e7abf857701d47e433c56a48ffe0d8abb800a03d439b6289bfb5941eb6
MD5 f598683f0fa19535cb97ee06b197249b
BLAKE2b-256 baaf367ff851ee08e9c9084bf0ccff73b0c81787ca45b3cef6b2a2ab2051cc17

See more details on using hashes here.

File details

Details for the file beta_solver-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: beta_solver-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for beta_solver-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 969f6710c4cff25318b4b41d71298a2b5f4c9b4970801bbe122862a81d243b49
MD5 657874f94be02d5edc5d1abe3f2d6cf2
BLAKE2b-256 7c8551898f8d796dc75b67baa9175e7eda81ecab43dd2b3358d72e5ad0032dba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page