Skip to main content

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

Metadata

Release files for avish-lib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avish-lib 0.1.0
File Size Uploaded
avish_lib-0.1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avish-lib 0.1.0
File Interpreter ABI Platform
avish_lib-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / avish_lib-0.1.0.tar.gz

Download URL avish_lib-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b3ab526b9548be888bf6c8d3bd755cd45b067d026e25ba4e1d2e08e30331da02
BLAKE2b-256 checksum
How to use checksums
f640b508150af67d3f0a566b46bc228d22c4d5ec7019bed4682447c443a8d156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / avish_lib-0.1.0-py3-none-any.whl

Download URL avish_lib-0.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9745cf70c475a1bef7f8e7d6cfd38d1bd7149a60174cde74f34bd416661e56ba
BLAKE2b-256 checksum
How to use checksums
a2db723e05abf76e4e9214385ccb4772f4111f2f172c09f363224fb4e1faa69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page