Open-source·Research-first·MIT Licensed

The unified
open intelligence
library for Python.

vectorphile is a research-first computational intelligence library. One import covers tensors, autograd, deep learning, classical ML, DataFrames, signal processing, and more — built from first principles.

16+
Core modules
133
Tests passing
v0.1
Stable release
scroll
TENSORSAUTOGRADNEURAL NETWORKSCLASSICAL MLDATAFRAMESLINEAR ALGEBRASTATISTICSSIGNAL PROCESSINGSPARSE MATRICESOPTIMIZATIONFFTOPEN SOURCEMIT LICENSEDPURE PYTHONTENSORSAUTOGRADNEURAL NETWORKSCLASSICAL MLDATAFRAMESLINEAR ALGEBRASTATISTICSSIGNAL PROCESSINGSPARSE MATRICESOPTIMIZATIONFFTOPEN SOURCEMIT LICENSEDPURE PYTHON

Core Modules

One primitive.
Every layer.

vectorphile is structured around a single Tensor primitive with autodiff built in. Every module — from neural networks to classical ML to DataFrames — extends from the same foundation.

CORE · TENSORS

vp.core

Tensor

The central primitive. Every numeric object in vectorphile is a Tensor. All operations — arithmetic, reduction, reshaping, broadcasting — are defined on it. Autodiff is built in from day one.

OPERATIONS60+
DTYPESfloat16–64, int8–64
AUTOGRADReverse-mode
TensorBroadcastingAutogradno_grad
DEEP LEARNING · NN

vp.nn

Layers

Composable neural network layers, all differentiable. Linear, convolutional, normalization, attention, and dropout layers alongside a full set of loss functions and a Sequential container.

LAYERS20+ layer types
LOSSES11 loss functions
INTERFACEModule-based
LinearBatchNormGELUDropoutSequential
CLASSICAL ML

vp.ml

Algorithms

The full spectrum of classical learning algorithms — linear models, trees, ensembles, boosting, clustering, decomposition, preprocessing, metrics, and cross-validation. Consistent fit/predict interface throughout.

ALGORITHMS40+ estimators
INTERFACEfit / predict / transform
BOOSTINGHistogram-based XGB
RandomForestXGBoostPCAKMeansGridSearch

Research Philosophy

The goal is understanding,
not just accuracy.

vectorphile is built for researchers and engineers who want to understand what their computational stack actually does. Every design decision prioritizes transparency over convenience.

∂

Mathematically grounded

Every module exposes the underlying mathematics. Gradient derivations, decomposition proofs, and numerical stability notes are part of the codebase — not hidden in a black box.

◈

Readable by design

The internals are written to be read. A researcher should be able to follow the execution of a backward pass or a decision tree split without consulting external documentation.

⬡

Stable across versions

The public API surface is designed for stability. Phase transitions (Python → C → CUDA) are internal — the calling interface does not change between phases.

Design Principles

Built from
first principles.

Every architectural decision in vectorphile is grounded in a research requirement. Here is what that looks like in practice.

01

Unified Tensor Primitive

Every numeric object in vectorphile is a Tensor. DataFrames, sparse matrices, model parameters, and statistical outputs all share the same underlying representation and operator set. No type fragmentation, no hidden conversions.

TensorAutogradBroadcastingno_grad
02

Autodiff-Native Architecture

The autograd engine is not bolted on. Every tensor primitive registers its backward function at construction time, so custom operations automatically participate in gradient flow without any special registration.

Reverse-modeDynamic GraphChain RuleGradient Accumulation
03

Research Portability

The API is designed so that moving from a quick prototype to a production training loop requires zero idiom changes. Use high-level Sequential for fast iteration; drop into raw tensor ops when you need full control.

SequentialModulefit/predictDataLoader
04

No Hidden Magic

No global dispatch tables, no opaque C extensions in Phase 1, no framework-level implicit state. What you read is what runs. Every execution path is explicit, traceable, and readable — designed for researchers who want to understand what their code does.

Pure PythonNumPy backendExplicitInspectable
05

Full Scientific Stack

Beyond deep learning — linear algebra via LAPACK-backed routines, full statistical inference, FFT and digital signal processing, sparse matrix formats, and numerical optimization. Everything a computational researcher needs.

linalgstatsfftsignalsparseoptimize
06

Progressive Depth

Phase 1 is pure Python and NumPy. Phase 2 introduces C extensions for core tensor ops, real CUDA support via cuBLAS/cuDNN, and fp16/bf16 AMP. The API surface remains stable across phases — no breaking changes.

Phase 1: PythonPhase 2: CUDAcuBLAScuDNNfp16/bf16

One primitive. Every computation.

The vectorphile module graph — from raw tensor ops to full ML pipelines, all in one coherent system.

vp.coreTensor · Ops · Autogradthe universal primitivevp.nnlayers · losses · Sequentialvp.mltrees · ensembles · clusteringvp.dataDataFrame · GroupBy · I/Ovp.optimSGD · Adam · schedulersvp.linalg / statsSVD · eig · t-test · ANOVAvp.fft / signalFFT · STFT · butter · convolveimport vectorphile as vpone import · 16 modules · pure pythonpip install vectorphileTENSOR → AUTOGRAD → LEARN → ANALYZE → PROCESS → OPTIMIZE
16 modules
Core, nn, optim, autograd, ml, ml.boost, data, linalg, stats, random, fft, signal, sparse, optimize, amp, utils.data
133 tests
Full test coverage across tensor ops, autograd correctness, ML algorithm outputs, DataFrame operations, and numerical routines.
v0.1 stable
Phase 1 complete. Pure Python + NumPy backend. Phase 2 (C + CUDA) in active research.

Install, import, run.

One pip command. No C compiler, no CUDA setup, no driver headaches. Phase 1 is pure Python — works everywhere Python works.

terminal
$ pip install vectorphile
Collecting vectorphile … installing
Successfully installed vectorphile-0.1.0
 
$ python
>>> import vectorphile as vp
>>> x = vp.randn(100, 20, requires_grad=True)
>>> model = vp.nn.Sequential(
... vp.nn.Linear(20, 64), vp.nn.GELU(),
... vp.nn.Linear(64, 1)
... )
>>> loss = model(x).sum()
>>> loss.backward()
>>> print(x.grad.shape)
(100, 20)
╔══════════════════════════════════════════════════╗
║ vectorphile v0.1.0 · pure python · numpy ║
║ 16 modules · 133 tests · Apache-2.0 ║
╚══════════════════════════════════════════════════╝

Everything under one import.

16 focused modules. No fragmented dependencies. No bridging code. One coherent system.

vp.core
tensor · autograd
vp.nn
deep learning
vp.optim
optimizers + schedulers
vp.ml
classical algorithms
vp.ml.boost
gradient boosting
vp.data
dataframes + I/O
vp.linalg
linear algebra
vp.stats
statistical inference
vp.random
random generation
vp.fft
fourier transforms
vp.signal
signal processing
vp.sparse
sparse matrices
vp.optimize
numerical optimization
vp.amp
mixed precision
vp.utils.data
dataset + dataloader
vp.autograd
autodiff engine

From install to
full stack in minutes.

vectorphile is designed to be learnable incrementally. Start with tensors. Add autograd. Add layers. The same idioms carry through every module in the library.

Open the full reference
01

Install

now

pip install vectorphile — that's it. No CUDA setup required for Phase 1. NumPy ≥ 1.24 is the only hard dependency. The full module surface is available immediately.

02

Explore the Primitives

tensors + autograd

Start with vp.randn, vp.tensor, and a simple autograd trace. The computation graph is dynamic — operations build it as they execute. Call .backward() and inspect .grad to see it in action.

03

Build a Model

vp.nn + vp.optim

Compose layers with vp.nn.Sequential, choose an optimizer from vp.optim, pick a loss from vp.nn. The training loop is explicit — no Trainer abstractions hiding what happens per step.

04

Go Deeper

the full stack

vp.ml for classical algorithms, vp.data for DataFrames, vp.linalg for decompositions, vp.stats for inference, vp.fft and vp.signal for spectral work. Same Tensor primitive throughout.

Open source.
Built together. Yours to use.

Vectorphile is free, open-source software. Star the repo, open an issue, or contribute a module — every kind of participation matters.