Comprehensive, type-safe framework unifying tensors, DataFrames, neural networks, and classical ML into a single modular package.
npm install deepboxNode ≥ 24.131import { tensor, add, parameter } from "deepbox/ndarray"2import { DataFrame } from "deepbox/dataframe"3import { LinearRegression } from "deepbox/ml"45// Tensor operations6const a = tensor([[1, 2], [3, 4]])7const b = tensor([[5, 6], [7, 8]])8const c = a.add(b) // [[6, 8], [10, 12]]910// Automatic differentiation11const x = parameter([2, 3])12const y = x.mul(x).sum()13y.backward() // x.grad -> tensor([4, 6])1415// DataFrames16const df = new DataFrame({17 name: ["Alice", "Bob"],18 score: [85, 90]19})2021// Machine learning22const model = new LinearRegression()23model.fit(XTrain, yTrain)From tensor operations to model training — everything in one package.
90+ tensor operations with full broadcasting and multiple dtypes support.
GradTensor with full backward pass support for neural network training.
Tabular API with 50+ operations for data manipulation and analysis.
Linear, Conv, RNN/LSTM/GRU, Attention layers with optimizers and schedulers.
Classical ML models including Trees, SVM, KNN, Naive Bayes, and Ensembles.
40+ ML metrics, hypothesis tests, correlations, and statistical analysis.
deepbox/ndarrayN-D tensors, autograd, broadcasting, 90+ ops, sparse matricesdeepbox/linalgSVD, QR, LU, Cholesky, eigendecomposition, solvers, normsdeepbox/dataframeDataFrames & Series with 50+ operations, CSV I/Odeepbox/statsDescriptive stats, correlations, hypothesis testsdeepbox/mlLinear, Ridge, Trees, SVM, KNN, ensembles, clustering, PCAdeepbox/nnLinear, Conv, RNN/LSTM/GRU, Attention, normalization, lossesdeepbox/optimSGD, Adam, AdamW, RMSprop + LR schedulersdeepbox/metrics40+ classification, regression, and clustering metricsdeepbox/preprocessScalers, encoders, normalizers, CV splitsdeepbox/randomDistributions (normal, uniform, gamma, etc.) + samplingdeepbox/datasetsIris, Digits, Breast Cancer + synthetic generatorsdeepbox/plotSVG/PNG scatter, line, bar, hist, heatmap, ML plots