Skip to main content

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


Download files

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

Source Distribution

neuralfabric-0.7.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

neuralfabric-0.7.1-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

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

Hashes for neuralfabric-0.7.1.tar.gz
Algorithm Hash digest
SHA256 f9361984ee9d24821105693f9beebf5a7685d2d98a4860e8ce358a09612387f2
MD5 5ffc496e95618aa888b4560e0069ac50
BLAKE2b-256 f609040b978089d044fc0f5f8bcf8bb7b96d44b988ea52cac9877c5fa5b9bf26

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuralfabric-0.7.1.tar.gz:

Publisher: publish.yml on aryanap07/neuralfabric

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for neuralfabric-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4dda376dac60bb4415d36b6d2dbb7acccd666578c17a17cd16efe723771e4b
MD5 03cf45c5e73cb3640e104e432e7707c9
BLAKE2b-256 7600465bed084f4841482c38f40adedcb4a0ca2151319b65306b5a7fbb89213f

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuralfabric-0.7.1-py3-none-any.whl:

Publisher: publish.yml on aryanap07/neuralfabric

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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