Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/src/utils/mod.ts

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
import * as netsaur from "https://deno.land/x/netsaur@0.4.2/packages/utilities/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.

Interfaces

nDArray type

The base type implemented by Tensor

Type Aliases

The base type implemented by Matrix

Order of the tensor

An array with n items