import * as netsaur from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/mod.ts";
Metrics for Machine Learning outcomes.
Classes
A report with metrics for classification results | |
Confusion matrix for the result. | |
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. | |
Convert 2D array of indices into multi-hot encoded vectors. | |
Convert an array of indices into one-hot encoded vectors. | |
A Tensor of order O. | |
Simple text cleaner | |
Convert 2D array of indices into multi-hot encoded vectors where each index contains the number of times the respective value appears in a sample (term frequency encoder). |
Variables
The fraction of positives that were predicted correctly |
Functions
The fraction of predictions that were correct | |
Compute Cohen's Kappa to find Agreement | |
Extract colors from an image. | |
Compute F1 Score | |
Get a histogram of frequency of colors. | |
f mae | Mean Absolute Error |
f mse | Mean Square Error |
Extract patches from a 2d image | |
The fraction of "positive" predictions that were actually positive | |
Function for quick cleaning of text | |
f r2 | R2 Score for regression |
f rmse | Root Mean Square Error |
The fraction of positives that were predicted correctly | |
The fraction of negatives that were predicted correctly | |
Convert a softmax output into one-hot vectors. Mutates the input. | |
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 |