Analyze data, build models, visualize results—all in JavaScript.
import * as ds from '@tangent/ds';
import * as Plot from '@observablehq/plot';
// Run PCA in 3 lines
const pca = new ds.mva.PCA({ center: true, scale: true });
pca.fit({ data: myData, X: ["var1", "var2", "var3"] });
ds.plot.ordiplot(pca.model).show(Plot);
Ordination techniques (PCA, LDA, RDA) and clustering algorithms (hierarchical, k-means) for exploring complex datasets.
Comprehensive statistical toolkit including t-tests, ANOVA, generalized linear models (GLM), and mixed-effects models.
Build predictive models with K-nearest neighbors, multilayer perceptrons, decision trees, and more. Complete with cross-validation and hyperparameter tuning.
Publication-ready plots powered by Observable Plot. Create biplots, confusion matrices, dendrograms, and more.
# npm
npm install @tangent/ds
# deno
deno add @tangent/ds
tangent/ds is distributed under the GPL-3 License.