Skip to main content

Lightweight custom ML algorithms library (avish_lib)

Project description

avish_lib

avish_lib is a small collection of custom machine-learning algorithms implemented with minimal dependencies (NumPy).

Install for local development:

python -m pip install -e .

Quick usage:

from avish_lib import LinearRegression, RidgeRegression, KNNRegressor, PCA

# Simple linear fit
X = [[1], [2], [3], [4]]
y = [2, 4, 6, 8]
model = LinearRegression()
model.fit(X, y)
print("coef:", model.coef_, "intercept:", model.intercept_)

# PCA example
p = PCA(n_components=1)
X_reduced = p.fit_transform([[1,2],[3,4],[5,6]])
print(X_reduced)

Project layout:

your_project_name/
├── src/
│   └── avish_lib/
│       ├── __init__.py
│       └── linear_models.py
├── tests/
├── pyproject.toml
├── README.md
└── LICENSE

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

avish_lib-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

avish_lib-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file avish_lib-0.1.0.tar.gz.

File metadata

  • Download URL: avish_lib-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for avish_lib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3ab526b9548be888bf6c8d3bd755cd45b067d026e25ba4e1d2e08e30331da02
MD5 ef589095a7eba05c1cb62b3653bfea96
BLAKE2b-256 f640b508150af67d3f0a566b46bc228d22c4d5ec7019bed4682447c443a8d156

See more details on using hashes here.

File details

Details for the file avish_lib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: avish_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for avish_lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9745cf70c475a1bef7f8e7d6cfd38d1bd7149a60174cde74f34bd416661e56ba
MD5 2f8d2840b0caa2249a87185eda238f13
BLAKE2b-256 a2db723e05abf76e4e9214385ccb4772f4111f2f172c09f363224fb4e1faa69b

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