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.0.tar.gz (31.9 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.0-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maten-0.1.0.tar.gz
  • Upload date:
  • Size: 31.9 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.0.tar.gz
Algorithm Hash digest
SHA256 84b88dfda6c16cf1057ab9cb51cf23c69378792b076e0fa0672df288ae6084c8
MD5 642de4c8d27be695d5e89eff85e80d78
BLAKE2b-256 e6c0dfa8f621fce65043cb331118eca8b417252e0cec7189ac49932e599df873

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maten-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79bae234c0c615e74e64449a96a703fe4d9121708b8783a785b1f015183eeed0
MD5 c8050582fb47ac746fdebeb5a04a370a
BLAKE2b-256 6b3d46e5edd84e65e541a43c69fd895bb1c1c0336e114c84739b8d261ff06885

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