Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/vectorizer/src/utils/mod.ts

Machine Learning utilities for TypeScript
Latest
import * as vectorizer from "https://deno.land/x/vectorizer@v0.7.5/src/utils/mod.ts";

Utilities for working with arrays in appraisal.

Classes

Class for 2D Arrays. This is not akin to a mathematical Matrix (a collection of column vectors). This is a collection of row vectors. A special case of Tensor for 2D data.

A Tensor of order O.

Functions

Generate a normal random variate.

Generate a normally distributed array.

Get n evenly distributed numbers in a range.

Rearrange characters in a string randomly.

Get random number from range

Get an array of numbers between a given range, incremented by a step.

Shuffle a given array in-place.

Split arrays by their first axis

Remove duplicate values in an array. Uses a strict = for identifying duplicates.

Roll one from an array of weighted choices.

Type Aliases

The base type implemented by Matrix

nDArray type

Order of the tensor

An array with n items

The base type implemented by Tensor