References
arrays
summary | ||
public |
Get a copy of an array with absolute values of the original array entries. |
|
public |
F argFilter(array: Array<mixed>, callback: function(element: mixed, !index: Number): boolean): Array<number> Filter an array and return the array indices where the filter was matched. |
|
public |
Get array key corresponding to largest element in the array. |
|
public |
F argSort(array: Array<mixed>, compareFunction: function(a: mixed, b: mixed): Number): Array<number> Sort an array and return the array indices of the sorted elements. |
|
public |
F concatenate(axis: number, S: ...Array<mixed>): Array Concatenate two or more n-dimensional arrays. |
|
public |
Calculate dot product of two vectors. |
|
public |
Deep check whether two arrays are equal: sub-arrays will be traversed, and strong type checking is enabled. |
|
public |
Set all entries in an array to a specific value and return the resulting array. |
|
public |
Recursively flatten an array. |
|
public |
Initialize an n-dimensional array of a certain value. |
|
public |
F getArrayElement(A: Array<mixed>, index: Array<number>): mixed Get an arbitrary element from an array, using another array to determine the index inside the first array. |
|
public |
Find the shape of an array, i.e. |
|
public |
F internalSum(A: Array<number>): number Sum all elements of an array. |
|
public |
Generate n points on the interval (a,b), with intervals (b-a)/(n-1). |
|
public |
Generate a mesh grid, i.e. |
|
public |
Calculate the Euclidian norm of a vector. |
|
public |
F pad(A: Array<mixed>, paddingLengths: Array<number>|Array<Array.<number>>, paddingValues: Array<number>|Array<Array.<number>>, axes: Array<number>): Array<mixed> Pad an array along one or multiple axes. |
|
public |
F permuteAxes(A: Array<mixed>, newAxes: Array<number>): Array<mixed> Permute the axes of an input array. |
|
public |
Raise all elements in an array to some power. |
|
public |
Repeat an array multiple times along an axis. |
|
public |
Reshape an array into a different shape. |
|
public |
Multiply each element of an array by a scalar (i.e. |
|
public |
F setArrayElement(A: Array<mixed>, index: Array<number>, value: mixed): * Set an arbitrary element in an array, using another array to determine the index inside the array. |
|
public |
Randomly shuffle multiple arrays in the primary (first) axis. |
|
public |
Take a slice out of an input array. |
|
public |
this function was deprecated. Use slice() instead
Extract a sub-block of a matrix of a particular shape at a particular position. |
|
public |
Calculate element-wise sum of two or more arrays. |
|
public |
Get the transpose of a matrix or vector. |
|
public |
Get unique elements in array |
|
public |
F valueCounts(array: Array<mixed>): Array<Array<mixed>> Count the occurrences of the unique values in an array |
|
public |
F valueVector(n: number, value: mixed): * Initialize a vector of a certain length with a specific value in each entry. |
|
public |
Take a slice out of an array, but wrap around the beginning an end of the array. |
|
public |
Initialize an n-dimensional array of zeros. |
|
public |
F zipWithIndex(array: Array<mixed>): Array<Array<mixed>> From an input array, create a new array where each element is comprised of a 2-dimensional array where the first element is the original array entry and the second element is its index |
classification
summary | ||
public |
The decision boundary module calculates decision boundaries for a trained classifier on a 2-dimensional grid of points. |
data
datasets
kernel
summary | ||
public |
C Kernel Base class for kernels, which calculate some distance metric between two data points |
|
public |
The Gaussian kernel, also known as the radial basis function (RBF) kernel |
|
public |
The linear kernel calculates the dot product of the two input vectors |
|
public |
The Polynomial kernel. |
|
public |
The Sigmoid kernel. |
model-selection
summary | ||
public |
F trainTestSplit(input: Array<Array<mixed>>, optionsUser: Object): Array Split a dataset into a training and a test set. |
preprocessing
summary | ||
public |
Encoder of categorical values to integers. |
random
summary | ||
public |
Generate a random number between a lower bound (inclusive) and an upper bound (exclusive). |
|
public |
Generate a random integer between a lower bound (inclusive) and an upper bound (exclusive). |
|
public |
F sample(input: Array<mixed>, number: number, withReplacement: boolean, weights: Array<number> | string): Array<mixed> Take a random sample with or without replacement from an array. |
|
public |
F sampleFisherYates(input: Array<mixed>, number: number): Array<mixed> Take a random sample without replacement from an array. |
supervised
summary | ||
public |
Base class for classifiers. |
|
public |
Base class for supervised estimators (classifiers or regression models). |
|
public |
Base class for multiclass classifiers using the one-vs-all classification method. |
supervised/linear
summary | ||
public |
Logistic Regression learner for binary classification problem. |
|
public |
Logistic Regression learner for 2 or more classes. |
|
public |
Perceptron learner for binary classification problem. |
|
public |
Perceptron learner for 2 or more classes. |
supervised/neighbors
supervised/neural-network
summary | ||
public |
|
supervised/svm
supervised/trees
summary | ||
public |
Decision tree learner. |
|
public |
Decision tree node. |
|
public |
Random forest learner. |
|
public |
|
|
public |
|
ui
unsupervised
summary | ||
public |
Base class for clustering algorithms. |
unsupervised/neighbors
summary | ||
public |
C KMeans k-means clusterer. |
util/input-devices
summary | ||
public |
F getTouchCoordinate(e: object, coordinate: string): * Get touch coordinate (x or y) from touchpad input. |
util/search
summary | ||
public |
F binaryIntervalSearch(array: Array<number>, value: number): number Perform a binary search in a sorted array A to find the index i such that the search value is larger than or equal to A[i], and strictly smaller than A[i+1]. |
validation/metrics
summary | ||
public |
Evaluate the accuracy of a set of predictions. |
|
public |
Calculate the area under the receiver-operator characteristic curve (AUROC) for a set of predictions. |