A from-scratch machine learning and deep learning framework, from tensors to transformers.
Project description
NeuralFabric
A from-scratch machine learning and deep learning framework, from tensors to transformers.
Features
- Tensor engine built on NumPy
- Automatic differentiation (Autograd)
- Linear Regression
- Logistic Regression
- Train-test split utility
- Modern Python packaging
- Type-safe codebase with MyPy
- Ruff, Black, Pytest, and GitHub Actions integration
Installation
pip install -U neuralfabric
For development:
pip install -e ".[dev]"
Quick Start
from neuralfabric.linear_model import LinearRegression
from neuralfabric.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(
X,
y,
test_size=0.2,
)
model = LinearRegression()
model.fit(X_train, y_train)
predictions = model.predict(X_test)
Project Structure
src/neuralfabric/
├── core/ # Tensor + autograd engine
├── linear_model/ # Linear Regression, Logistic Regression
├── model_selection/ # train_test_split
└── utils/ # Utility functions
Roadmap
Completed
- Tensor implementation
- Automatic differentiation engine
- Linear Regression
- Logistic Regression
- Train-test split utility
- Unit testing
- CI/CD workflows
- PyPI publishing
Upcoming
- Ridge Regression
- Lasso Regression
- Elastic Net
- Decision Trees
- Random Forests
- Support Vector Machines
- K-Means Clustering
- PCA
- Neural Network API
- Optimizers (SGD, Adam)
- Transformer Architecture
- Documentation Website
Development
make dev
make test
make lint
make format
make build
make publish
License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuralfabric-0.7.1.tar.gz.
File metadata
- Download URL: neuralfabric-0.7.1.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9361984ee9d24821105693f9beebf5a7685d2d98a4860e8ce358a09612387f2
|
|
| MD5 |
5ffc496e95618aa888b4560e0069ac50
|
|
| BLAKE2b-256 |
f609040b978089d044fc0f5f8bcf8bb7b96d44b988ea52cac9877c5fa5b9bf26
|
Provenance
The following attestation bundles were made for neuralfabric-0.7.1.tar.gz:
Publisher:
publish.yml on aryanap07/neuralfabric
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neuralfabric-0.7.1.tar.gz -
Subject digest:
f9361984ee9d24821105693f9beebf5a7685d2d98a4860e8ce358a09612387f2 - Sigstore transparency entry: 1897264054
- Sigstore integration time:
-
Permalink:
aryanap07/neuralfabric@30f31779ac0b6f5ad67f73521c6d73593a22159a -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/aryanap07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30f31779ac0b6f5ad67f73521c6d73593a22159a -
Trigger Event:
push
-
Statement type:
File details
Details for the file neuralfabric-0.7.1-py3-none-any.whl.
File metadata
- Download URL: neuralfabric-0.7.1-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd4dda376dac60bb4415d36b6d2dbb7acccd666578c17a17cd16efe723771e4b
|
|
| MD5 |
03cf45c5e73cb3640e104e432e7707c9
|
|
| BLAKE2b-256 |
7600465bed084f4841482c38f40adedcb4a0ca2151319b65306b5a7fbb89213f
|
Provenance
The following attestation bundles were made for neuralfabric-0.7.1-py3-none-any.whl:
Publisher:
publish.yml on aryanap07/neuralfabric
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neuralfabric-0.7.1-py3-none-any.whl -
Subject digest:
fd4dda376dac60bb4415d36b6d2dbb7acccd666578c17a17cd16efe723771e4b - Sigstore transparency entry: 1897264216
- Sigstore integration time:
-
Permalink:
aryanap07/neuralfabric@30f31779ac0b6f5ad67f73521c6d73593a22159a -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/aryanap07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30f31779ac0b6f5ad67f73521c6d73593a22159a -
Trigger Event:
push
-
Statement type: