Skip to main content

Pure Python scientific computing — replaces NumPy, Pandas, Matplotlib & TensorFlow

Project description

Maten

A lightweight, dependency-free Python toolkit that provides NumPy-, Pandas-, Matplotlib-, and TensorFlow-like APIs for learning and prototyping.

Features

  • maten.core — N-dimensional tensors, element-wise math, and linear algebra
  • maten.frame — Series, DataFrame, groupby, and CSV/JSON I/O
  • maten.plot — SVG charts (line, bar, scatter, hist, pie, heatmap)
  • maten.neural — Scalar autograd, layers, optimizers, and a simple trainer

Installation

From the project root:

pip install .

Editable install for development:

pip install -e ".[dev]"

Quick start

import maten
from maten.core import Tensor, zeros
from maten.frame import DataFrame
from maten.plot import subplots, line
from maten.neural import Value

print(maten.__version__)
print(zeros(3))
print(DataFrame({"x": [1, 2, 3]}))

_, ax = subplots()
line(ax, [0, 1, 2], [0, 1, 4])
ax.save("demo.svg")

x = Value(2.0)
y = x * x
y.backward()
print(x.grad)  # 4.0

Examples

python examples/core_demo.py
python examples/frame_demo.py
python examples/plot_demo.py
python examples/neural_demo.py

Tests

pytest

Documentation

License

MIT — see 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

maten-0.1.1.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

maten-0.1.1-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file maten-0.1.1.tar.gz.

File metadata

  • Download URL: maten-0.1.1.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for maten-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4fda10ee00b9bbbb33767bd700717ca7d9cf3188aee2c289d74be518e9e5dbed
MD5 d0615e30571c2e30c624e28f2f86f105
BLAKE2b-256 d547fb478ee230eebf5ff343ef72c9002f5ecb85811f26298954ac03a7c00243

See more details on using hashes here.

File details

Details for the file maten-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: maten-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for maten-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0eedd2e63c2443bdf3811fa066e17bdf767291e818075f76109125fb9d5e365f
MD5 f52e0b85c47624b59d7baefb9897fcad
BLAKE2b-256 1d1413d17388407af56f172f247a56f84176f40142a457295311dc832330f39c

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