@ai-on-browser/data-analysis-models

0.21.0

Default export object.

default
Properties
Tensor (Tensor) : Tensor class
Matrix (Matrix) : Matrix class
Graph (Graph) : Graph class
Complex (Complex) : Complex number
Static Members
models
rl
evaluate

MatrixException

lib/util/matrix.js

Exception for matrix class

new MatrixException(message: string, value: any)

Extends Error

Parameters
message (string) Error message
value (any) Some value

Matrix class

new Matrix(rows: number, cols: number, values: (number | Array<number> | Array<Array<number>>)?)
Parameters
rows (number) Number of rows
cols (number) Number of columns
values ((number | Array<number> | Array<Array<number>>)?) Initial values
Static Members
zeros(rows, cols)
ones(rows, cols)
eye(rows, cols, init = 1)
random(rows, cols, min = 0, max = 1)
randint(rows, cols, min = 0, max = 1)
randn(rows, cols, myu = 0, sigma = 1)
diag(d)
fromArray(arr)
map(mat, cb)
resize(mat, rows, cols, init = 0)
repeat(mat, n, axis = 0)
concat(a, b, axis = 0)
add(a, b)
sub(a, b)
mult(a, b)
div(a, b)
mod(a, b)
and(a, b)
or(a, b)
bitand(a, b)
bitor(a, b)
bitxor(a, b)
Instance Members
dimension
sizes
length
rows
cols
value
t
iterator()
toArray()
toScaler()
toString()
copy(dst?)
equals(other, tol = 0)
at(r, c?)
set(r, c, value?)
row(r)
col(c)
slice(from, to, axis = 0)
block(rows_from?, cols_from?, rows_to?, cols_to?)
remove(idx, axis = 0)
removeIf(cond, axis = 0)
sample(n, axis = 0, duplicate = false)
fill(value)
map(cb)
forEach(cb)
transpose()
adjoint()
flip(axis = 0)
swap(a, b, axis = 0)
sort(axis = 0)
shuffle(axis = 0)
unique(axis = 0, tol = 0)
resize(rows, cols, init = 0)
reshape(rows, cols)
repeat(n, axis = 0)
concat(m, axis = 0)
reduce(cb, init?, axis = -1, keepdims = null)
every(cb, axis = -1)
some(cb, axis = -1)
max(axis = -1)
min(axis = -1)
median(axis = -1)
quantile(q, axis = -1)
argmax(axis)
argmin(axis)
sum(axis = -1)
mean(axis = -1)
prod(axis = -1)
variance(axis = -1, ddof = 0)
std(axis = -1, ddof = 0)
isSquare()
isDiag(tol = 0)
isIdentity(tol = 0)
isZero(tol = 0)
isTriangular(tol = 0)
isLowerTriangular(tol = 0)
isUpperTriangular(tol = 0)
isSymmetric(tol = 0)
isHermitian(tol = 0)
isAlternating(tol = 0)
isSkewHermitian(tol = 0)
isRegular(tol = 0)
isNormal(tol = 0)
isOrthogonal(tol = 0)
isUnitary(tol = 0)
isNilpotent(tol = 0)
diag()
trace()
norm(p = 2)
normInduced(p = 2)
normSpectral()
normEntrywise(p = 2)
normFrobenius()
normMax()
normSchatten(p = 2)
normNuclear()
rank(tol = 0)
det()
spectralRadius()
negative()
not()
bitnot()
abs()
round()
floor()
ceil()
leftShift(n)
signedRightShift(n)
unsignedRightShift(n)
broadcastOperate(o, fn)
operateAt(r, c, fn?)
add(o)
addAt(r, c, v)
sub(o)
isub(o)
subAt(r, c, v)
isubAt(r, c, v)
mult(o)
multAt(r, c, v)
div(o)
idiv(o)
divAt(r, c, v)
idivAt(r, c, v)
mod(o)
imod(o)
modAt(r, c, v)
imodAt(r, c, v)
and(o)
andAt(r, c, v)
or(o)
orAt(r, c, v)
bitand(o)
bitandAt(r, c, v)
bitor(o)
bitorAt(r, c, v)
bitxor(o)
bitxorAt(r, c, v)
dot(o)
tDot(o)
kron(mat)
convolute(kernel, normalize = true)
reducedRowEchelonForm(tol = 0)
inv()
invLowerTriangular()
invUpperTriangular()
invRowReduction()
invLU()
pseudoInv()
pseudoInvNaive()
pseudoInvQR()
pseudoInvSVD()
pseudoInvBenIsraelCohen()
sqrt()
power(p)
exp()
log()
cov(ddof = 0)
gram()
solve(b)
solveLowerTriangular(b)
solveUpperTriangular(b)
solveJacobi(b, maxIteration = 1.0e3)
solveGaussSeidel(b, maxIteration = 1.0e3)
solveSOR(b, w, maxIteration = 1.0e3)
bidiag()
bidiagHouseholder(return_uv = false)
tridiag()
tridiagHouseholder(return_u = false)
tridiagLanczos(k = 0)
hessenberg()
hessenbergArnoldi(k = 0)
balancing()
balancingSinkhornKnopp()
lu()
qr()
qrGramSchmidt()
qrHouseholder()
singularValues()
svd()
svdEigen()
svdGolubKahan()
cholesky()
choleskyGaussian()
choleskyBanachiewicz()
choleskyCrout()
modifiedCholesky()
schur()
schurQR(shift = 'single')
rankFactorization()
eigen()
eigenValues()
eigenVectors()
eigenValuesBiSection()
eigenValuesLR(maxIteration = 1.0e5)
eigenValuesQR(maxIteration = 1.0e6)
eigenJacobi(maxIteration = 1.0e6)
eigenPowerIteration(maxIteration = 1.0e4)
eigenInverseIteration(ev = 0.0, maxIteration = 1.0e4)

Tensor class

new Tensor(size: Array<number>, value: (number | Array<number>)?)
Parameters
size (Array<number>) Sizes for each dimension
value ((number | Array<number>)?) Initial values
Static Members
zeros(size)
ones(size)
random(size, min = 0, max = 1)
randn(size, myu = 0, sigma = 1)
fromArray(arr)
Instance Members
dimension
sizes
length
value
iterator()
toArray()
toString()
toMatrix()
toScaler()
copy()
equals(other)
at(i)
index(i)
set(i, value)
select(idx, axis = 0)
slice(from, to, axis = 0)
fill(value)
map(cb)
forEach(cb)
transpose(axises)
flip(axis = 0)
shuffle(axis = 0)
resize(sizes, init = 0)
reshape(sizes)
repeat(n, axis = 0)
concat(t, axis = 0)
reduce(cb, init?, axis = -1, keepdims = false)
broadcastOperate(o, fn)
operateAt(i, fn?)
dot(o)

GraphException

lib/util/graph.js

Exception for graph class

new GraphException(message: string, value: any)

Extends Error

Parameters
message (string) Error message
value (any) Some value

Edge of graph

new Edge(from: number, to: number, value: unknown?, direct: boolean?)
Parameters
from (number) Index of the starting node of the edge
to (number) Index of the end node of the edge
value (unknown? = null) Value of the edge
direct (boolean? = false) true if the edge is direct

Graph class

new Graph(nodes: (number | Array<unknown>)?, edges: any)
Parameters
nodes ((number | Array<unknown>)? = 0) Number of nodes or values of nodes
edges (any = [])
Static Members
fromAdjacency(mat)
complete(n)
completeBipartite(n, m)
cycle(n, direct = false)
wheel(n)
windmill(k, n)
fromName(name)
Instance Members
order
size
nodes
edges
toDot()
toString()
copy()
degree(k, undirect = true, direct = true)
adjacencies(k, undirect = true, direct = true)
components()
biconnectedComponents()
diameter()
eccentricity(k)
radius()
center()
girth()
clique(k?)
chromaticNumber()
chromaticNumberWelchPowell()
chromaticIndex()
articulations()
articulationsEachNodes()
bridges()
addNode(value?)
getNode(k?)
removeNode(k)
clearNodes()
addEdge(from, to, value = null, direct = false)
getEdges(from, to, undirect = true, direct = true)
removeEdges(from, to, direct = null)
clearEdges()
adjacencyMatrix()
adjacencyList(direct = 'both')
degreeMatrix(direct = 'both')
laplacianMatrix()
isNull()
isEdgeless()
isUndirected()
isDirected()
isMixed()
isOriented()
isWeighted()
isSimple()
isConnected()
isBiconnected()
isTree()
isForest()
isBipartite()
isComplete()
isRegular(n = null)
isPlainer()
isPlainerAddEdge()
isPlainerAddVertex()
isSymmetric()
isDAG()
isSeparable()
isEulerian()
isSemiEulerian()
isHamiltonian()
isSemiHamiltonian()
hasCycle()
hasCycleDFS()
hasCycleEachNodes()
toUndirected()
toSimple()
isomorphism(g)
isomorphismUllmann(g)
isomorphismVF2(g)
inducedSub(k)
complement()
line()
contraction(a, b)
subdivision(a, b)
cleaving(a)
disjointUnion(g)
substitution(k, g)
cartesianProduct(g)
tensorProduct(g)
strongProduct(g)
lexicographicProduct(g)
shortestPath(from?)
shortestPathBreadthFirstSearch(from)
shortestPathDijkstra(from)
shortestPathBellmanFord(from)
shortestPathFloydWarshall()
minimumSpanningTree()
minimumSpanningTreePrim()
minimumSpanningTreeKruskal()
minimumSpanningTreeBoruvka()
hamiltonianPath(from?)
hamiltonianPathDynamicProgramming(from?)
hamiltonianCycle()
cut(s, t)
mincut(minv = 1)
mincutBruteForce(minv = 1)
mincutStoerWagner(minv = 1, startnode = 0)
mincutKargers(minv = 1, trials = null)
mincutKargersStein(minv = 1, trials = null)
bisectionSpectral()

Complex number

new Complex(real: number?, imag: number?)
Parameters
real (number? = 0) Real number
imag (number? = 0) Imaginary number
Instance Members
real
imaginary
abs()
conjugate()
add(other)
sub(other)
mult(other)
div(other)
sqrt()
cbrt()
exp()
log()

A2C agent

new A2CAgent(env: RLEnvironmentBase, resolution: number, procs: number, layers: Array<LayerObject>, optimizer: string)
Parameters
env (RLEnvironmentBase) Environment
resolution (number) Resolution of actions
procs (number) Number of processes
layers (Array<LayerObject>) Network layers
optimizer (string) Optimizer of the network
Instance Members
get_score()
get_action(state)
update(done, learning_rate, batch)

Angle-based Outlier Detection

new ABOD(k: number?)
Parameters
k (number? = Infinity) Number of neighborhoods
Instance Members
predict(datas)

Lower-bound for the Angle-based Outlier Detection

new LBABOD(k: number?, l: number?)
Parameters
k (number? = 10) Number of neighborhoods
l (number? = 5) Number of outliers
Instance Members
predict(datas)

Adaptive Linear Neuron model

new ADALINE(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

Adaptive Metric Nearest Neighbor

new ADAMENN(k0: number?, k1: number?, k2: number?, l: number?, k: number?, c: number?)
Parameters
k0 (number? = null) The number of neighbors of the test point
k1 (number? = 3) The number of neighbors in N1 for estimation
k2 (number? = null) The size of the neighborhood N2 for each of the k0 neighbors for estimation
l (number? = null) The number of points within the delta intervals
k (number? = 3) The number of neighbors in the final nearest neighbor rule
c (number? = 0.5) The positive factor for the exponential weighting scheme
Instance Members
fit(x, y)
predict(datas)

Adaptive thresholding

new AdaptiveThresholding(method: ("mean" | "gaussian" | "median" | "midgray"), k: number, c: number)
Parameters
method (("mean" | "gaussian" | "median" | "midgray") = 'mean') Method name
k (number = 3) Size of local range
c (number = 2) Value subtracted from threshold
Instance Members
predict(x)

Affinity propagation model

new AffinityPropagation()
Instance Members
categories
centroids
size
epoch
init(datas)
fit()
predict()

AgglomerativeClusterNode

lib/model/agglomerative.js
AgglomerativeClusterNode

Type: object

Properties
point (Array<number>?) : Data point of leaf node
index (number?) : Data index of leaf node
distance (number?) : Distance between children nodes
distances (Array<number>?) : Distances of leaf data and others
size (number) : Number of leaf nodes
children (Array<AgglomerativeClusterNode>?) : Children nodes
leafs (Array<AgglomerativeClusterNode>) : Leaf nodes

AgglomerativeClustering

lib/model/agglomerative.js

Agglomerative clustering

new AgglomerativeClustering(metric: ("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number))
Parameters
metric (("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number) = 'euclid') Metric name
Instance Members
fit(points)
getClusters(number)
predict(k)
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

CompleteLinkageAgglomerativeClustering

lib/model/agglomerative.js

Complete linkage agglomerative clustering

new CompleteLinkageAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

SingleLinkageAgglomerativeClustering

lib/model/agglomerative.js

Single linkage agglomerative clustering

new SingleLinkageAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

GroupAverageAgglomerativeClustering

lib/model/agglomerative.js

Group average agglomerative clustering

new GroupAverageAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

WardsAgglomerativeClustering

lib/model/agglomerative.js

Ward's agglomerative clustering

new WardsAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

CentroidAgglomerativeClustering

lib/model/agglomerative.js

Centroid agglomerative clustering

new CentroidAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

WeightedAverageAgglomerativeClustering

lib/model/agglomerative.js

Weighted average agglomerative clustering

new WeightedAverageAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

MedianAgglomerativeClustering

lib/model/agglomerative.js

Median agglomerative clustering

new MedianAgglomerativeClustering()

Extends AgglomerativeClustering

Instance Members
distance(c1, c2)
update(ca, cb, ck, ka, kb, ab)

AkimaInterpolation

lib/model/akima.js

Akima interpolation

new AkimaInterpolation(modified: boolean)
Parameters
modified (boolean = false) Use modified method or not
Instance Members
fit(x, y)
predict(target)

Approximate Large Margin algorithm

new ALMA(p: number, alpha: number, b: number, c: number)
Parameters
p (number = 2) Power parameter for norm
alpha (number = 1) Degree of approximation to the optimal margin hyperplane
b (number = 1) Tuning parameter
c (number = 1) Tuning parameter
Related
A New Approximate Maximal Margin Classification Algorithm. (2001)
Instance Members
update(x, y)
fit(x, y)
predict(data)

Averaged One-Dependence Estimators

new AODE(discrete: number?)
Parameters
discrete (number? = 20) Discretized number
Instance Members
fit(datas, y)
predict(data)

Autoregressive model

new AR(p: number, method: ("lsm" | "yuleWalker" | "levinson" | "householder")?)
Parameters
p (number) Order
method (("lsm" | "yuleWalker" | "levinson" | "householder")? = 'lsm') Method name
Instance Members
fit(data)
predict(data, k)

Autoregressive moving average model

new ARMA(p: number, q: number)
Parameters
p (number) Order of AR
q (number) Order of MA
Instance Members
fit(data)
predict(data, k)

Adaptive regularization of Weight Vectors

new AROW(r: number)
Parameters
r (number = 0.1) Learning rate
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Adaptive resonance theory

new ART(t: number?, method: "l2"?)
Parameters
t (number? = 1) Threshold
method ("l2"? = 'l2') Method name
Instance Members
size
fit(datas)
predict(datas)

Apriori algorithm

new Apriori(minsup: number)
Parameters
minsup (number) Minimum support
Instance Members
predict(x)

Association analysis

new AssociationAnalysis(support: number)
Parameters
support (number) Minimum support
Instance Members
fit(x)
items(n)
support(a)
confidence(a, b)
lift(a, b)

Autoencoder

new Autoencoder(input_size: number, reduce_size: number, enc_layers: Array<LayerObject>, dec_layers: Array<LayerObject>, optimizer: string)
Parameters
input_size (number) Input size
reduce_size (number) Reduced dimension
enc_layers (Array<LayerObject>) Layers of encoder
dec_layers (Array<LayerObject>) Layers of decoder
optimizer (string) Optimizer of the network
Instance Members
epoch
fit(train_x, iteration, rate, batch, rho)
predict(x)
reduce(x)

Automatic thresholding

new AutomaticThresholding()
Instance Members
fit(x)
predict(x)

Average shifted histogram

new AverageShiftedHistogram(config: object, step: number)
Parameters
config (object) Config
step (number) Number of bins to average
Instance Members
fit(datas)
predict(datas)

BalancedHistogramThresholding

lib/model/balanced_histogram.js

Balanced histogram thresholding

new BalancedHistogramThresholding(minCount: number?)
Parameters
minCount (number? = 500) Minimum data count
Instance Members
predict(x)

Ballseptron

new Ballseptron(r: number)
Parameters
r (number) Radius
Instance Members
fit(x, y)
predict(data)

Banditron

new Banditron(gamma: number?)
Parameters
gamma (number? = 0.5) Gamma
Instance Members
fit(x, y)
predict(data)

BayesianLinearRegression

lib/model/bayesian_linear.js

Bayesian linear regression

new BayesianLinearRegression(lambda: number?, sigma: number?)
Parameters
lambda (number? = 0.1) Tuning parameter
sigma (number? = 0.2) Initial sigma of normal distribution
Instance Members
fit(x, y)
predict(x)

Bayesian Network

new BayesianNetwork(alpha: number)
Parameters
alpha (number) Equivalent sample size
Instance Members
fit(x)
probability(x)

BernsenThresholding

lib/model/bernsen.js

Bernsen thresholding

new BernsenThresholding(n: number?, ct: number?)
Parameters
n (number? = 3) Size of local range
ct (number? = 15) Minimum value of contrast
Instance Members
predict(x)

Bessel filter

new BesselFilter(n: number?, c: number?)
Parameters
n (number? = 2) Order
c (number? = 0.5) Cutoff rate
Instance Members
predict(x)

Bilinear interpolation

new BilinearInterpolation()
Instance Members
fit(values, grids)
predict(x)

Balanced iterative reducing and clustering using hierarchies

new BIRCH(k: number, b: number?, t: number?, l: number?)
Parameters
k (number)
b (number? = 10) Maximum number of entries for each non-leaf nodes
t (number? = 0.2) Threshold
l (number? = Infinity) Maximum number of entries for each leaf nodes
Instance Members
fit(datas)
predict(datas)

Bisecting k-Means algorithm

new BisectingKMeans()
Instance Members
centroids
fit(datas)
predict(datas)

Bounded Online Gradient Descent

new BOGD(b: number?, eta: number?, lambda: number?, gamma: number?, sampling: ("uniform" | "nonuniform")?, kernel: any, loss: ("zero_one" | "hinge")?)
Parameters
b (number? = 10) Maximum budget size
eta (number? = 1) Stepsize
lambda (number? = 0.1) Regularization parameter
gamma (number? = 0.1) Maximum coefficient
sampling (("uniform" | "nonuniform")? = 'nonuniform') Sampling approach
kernel (any = 'gaussian')
loss (("zero_one" | "hinge")? = 'hinge') Loss type name
Instance Members
fit(x, y)
predict(data)

Box-Cox transformation

new BoxCox(lambda: number?)
Parameters
lambda (number? = null) Lambda
Instance Members
fit(x)
predict(x)
inverse(z)

Budgeted online Passive-Aggressive

new BPA(c: number?, b: number?, version: ("simple" | "projecting" | "nn")?, kernel: any)
Parameters
c (number? = 1) Regularization parameter
b (number? = 10) Budget size
version (("simple" | "projecting" | "nn")? = 'simple') Version
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

Brahmagupta interpolation

new BrahmaguptaInterpolation()
Instance Members
fit(x, y)
predict(target)

BRIDGE

new BRIDGE(k: number, e_core: number, e_den: number)
Parameters
k (number) K-means clustering size
e_core (number) e for core distance
e_den (number) e for density base clustering
Instance Members
predict(datas)

Budgeted Stochastic Gradient Descent

new BSGD(b: number?, eta: number?, lambda: number?, maintenance: ("removal" | "projection" | "merging")?, kernel: any)
Parameters
b (number? = 10) Budget size
eta (number? = 1) Learning rate
lambda (number? = 1) Regularization parameter
maintenance (("removal" | "projection" | "merging")? = 'removal') Maintenance type
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

MulticlassBSGD

lib/model/bsgd.js

Multiclass Budgeted Stochastic Gradient Descent

new MulticlassBSGD(b: number?, eta: number?, lambda: number?, maintenance: ("removal" | "projection" | "merging")?, kernel: any)
Parameters
b (number? = 10) Budget size
eta (number? = 1) Learning rate
lambda (number? = 1) Regularization parameter
maintenance (("removal" | "projection" | "merging")? = 'removal') Maintenance type
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

Budget Perceptron

new BudgetPerceptron(beta: number, n: number?)
Parameters
beta (number) Tolerance
n (number?) Cachs size
Instance Members
fit(x, y)
predict(data)

ButterworthFilter

lib/model/butterworth.js

Butterworth filter

new ButterworthFilter(n: number?, c: number?)
Parameters
n (number? = 2) Order
c (number? = 0.5) Cutoff rate
Instance Members
predict(x)

Clustering based on Closest Pairs

new C2P(r: number, m: number)
Parameters
r (number) Number of representative points
m (number) Number of required sub-clusters
Instance Members
fit(data)
getClusters(number)
predict(k)

Canny edge detection

new Canny(th1: number, th2: number)
Parameters
th1 (number) Big threshold
th2 (number) Small threshold
Instance Members
predict(x)

Clustering Affinity Search Technique

new CAST(t: number)
Parameters
t (number) Affinity threshold
Instance Members
size
fit(datas)
predict()

Categorical naive bayes

new CategoricalNaiveBayes(alpha: number?)
Parameters
alpha (number? = 1.0) Smoothing parameter
Instance Members
fit(datas, labels)
probability(datas)
predict(datas)

CatmullRomSplines

lib/model/catmull_rom.js

Catmull-Rom splines interpolation

new CatmullRomSplines()
Instance Members
fit(x, y)
predict(target)

CentripetalCatmullRomSplines

lib/model/catmull_rom.js

Centripetal Catmull-Rom splines interpolation

new CentripetalCatmullRomSplines(alpha: number)
Parameters
alpha (number = 0.5) Number for knot parameterization
Instance Members
fit(x, y)
predict(target)

CHAMELEON

new CHAMELEON(k: number?)
Parameters
k (number? = 5) Number of neighborhoods
Instance Members
fit(datas)
getClusters(number)
predict(k)

Change finder

new ChangeFinder(p: number?, r: number?, smooth: number?)
Deprecated: Does not work properly
Parameters
p (number? = 1) Order
r (number? = 0.5) Forgetting factor
smooth (number? = 10) Smoothing window size
Instance Members
fit(datas)
predict()

ChebyshevFilter

lib/model/chebyshev.js

Chebyshev filter

new ChebyshevFilter(type: (1 | 2)?, ripple: number?, n: number?, c: number?)
Parameters
type ((1 | 2)? = 1) Type number
ripple (number? = 1) Ripple factor
n (number? = 2) Order
c (number? = 0.5) Cutoff rate
Instance Members
predict(x)

Clustering LARge Applications

new CLARA(k: number)
Parameters
k (number) Number of clusters
Instance Members
init(datas)
fit()
predict()

Clustering Large Applications based on RANdomized Search

new CLARANS(k: number)
Parameters
k (number) Number of clusters
Instance Members
init(datas)
fit(numlocal, maxneighbor)
predict()

CLustering In QUEst

new CLIQUE(xi: (number | Array<number>), t: number)
Parameters
xi ((number | Array<number>)) Intervals
t (number) Density threshold
Instance Members
size
fit(datas)
predict(x)

CLUstEring based on local Shrinking

new CLUES(alpha: number?)
Parameters
alpha (number? = 0.05) Speed factor
Instance Members
size
fit(datas)
predict()

Co-training

new CoTraining(view1: object, view2: object)
Parameters
view1 (object) View
view2 (object) View
Instance Members
init(x, y)
fit()
predict()

Connectivity-based Outlier Factor

new COF(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Conscience on-line learning

new COLL(c: number, eta: number?, kernel: any)
Parameters
c (number) Number of clusters
eta (number? = 1) Initial learning rate
kernel (any = 'gaussian')
Instance Members
init(datas)
fit()
predict()

Complement Naive Bayes

new ComplementNaiveBayes(distribution: "gaussian"?)
Parameters
distribution ("gaussian"? = 'gaussian') Distribution name
Instance Members
fit(datas, labels)
predict(data)

Confidence weighted

new ConfidenceWeighted(eta: number)
Parameters
eta (number) Confidence value
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

SoftConfidenceWeighted

lib/model/confidence_weighted.js

Soft confidence weighted

new SoftConfidenceWeighted(eta: number, cost: number, v: (1 | 2))

Extends ConfidenceWeighted

Parameters
eta (number) Confidence value
cost (number) Tradeoff value between passiveness and aggressiveness
v ((1 | 2)) Version number

Cosine interpolation

new CosineInterpolation()
Instance Members
fit(x, y)
predict(target)

Conditional random fields

new CRF()
Instance Members
fit(x, y)
probability(x, y)
predict(x)

CubicConvolutionInterpolation

lib/model/cubic_convolution.js

Cubic-convolution interpolation

new CubicConvolutionInterpolation(a: number)
Parameters
a (number) Tuning parameter
Instance Members
fit(values)
predict(index)

Cubic Hermite spline

new CubicHermiteSpline(t: number, b: number)
Parameters
t (number) Tension factor
b (number) Bias factor
Instance Members
fit(x, y)
predict(target)

Cubic interpolation

new CubicInterpolation()
Instance Members
fit(x, y)
predict(target)

Cumulative moving average

new CumulativeMovingAverage()
Instance Members
predict(data)

Cumulative sum change point detection

new CumSum()
Instance Members
init(datas)
fit()
predict()
CURENode

Type: object

Properties
point (Array<number>?) : Data point of leaf node
index (number?) : Data index of leaf node
distance (number?) : Distance between children nodes
size (number) : Number of leaf nodes
children (Array<CURENode>?) : Children nodes
leafs (Array<CURENode>) : Leaf nodes

Clustering Using REpresentatives

new CURE(c: number)
Parameters
c (number) Number of representative points
Instance Members
fit(data)
getClusters(number)
predict(k)

DiscriminantAdaptiveNearestNeighbor

lib/model/dann.js

Discriminant adaptive nearest neighbor

new DiscriminantAdaptiveNearestNeighbor(k: number?, iteration: number?)
Parameters
k (number? = null) Number of neighborhoods
iteration (number? = 1) Iteration count
Instance Members
fit(x, y)
predict(data)

Distribution Based Clustering of LArge Spatial Databases

new DBCLASD()
Instance Members
predict(datas)

Density-based spatial clustering of applications with noise

new DBSCAN(eps: number?, minPts: number?, metric: ("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)?)
Parameters
eps (number? = 0.5) Radius to determine neighborhood
minPts (number? = 5) Minimum size of cluster
metric (("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
predict(datas)

Decision tree

new DecisionTree()
Instance Members
depth
init(datas, targets)
fit()
importance()
predict_value(data)

DecisionTreeClassifier

lib/model/decision_tree.js

Decision tree classifier

new DecisionTreeClassifier(method: ("ID3" | "CART"))

Extends DecisionTree

Parameters
method (("ID3" | "CART")) Method name
Instance Members
predict_prob(data)
predict(data)

DecisionTreeRegression

lib/model/decision_tree.js

Decision tree regression

new DecisionTreeRegression()

Extends DecisionTree

Instance Members
predict(data)

Delaunay interpolation

new DelaunayInterpolation()
Instance Members
fit(x, y)
predict(x)

DemingRegression

lib/model/deming.js

Deming regression

new DemingRegression(d: number)
Parameters
d (number) Ratio of variances
Instance Members
fit(x, y)
predict(x)

DENsity CLUstering

new DENCLUE(h: number, version: (1 | 2)?, kernel: ("gaussian" | {name: "gaussian"} | function (Array<number>): number)?)
Parameters
h (number) Smoothing parameter for the kernel
version ((1 | 2)? = 1) Version number
kernel (("gaussian" | {name: "gaussian"} | function (Array<number>): number)? = 'gaussian') Kernel name
Instance Members
size
init(datas)
fit()
predict()

DIvisive ANAlysis Clustering

new DIANA()
Instance Members
size
init(datas)
fit()
predict()

Diffusion map

new DiffusionMap(t: number, rd: number, kernel: ("gaussian" | {name: "gaussian"} | function (Array<number>, Array<number>): number)?)
Parameters
t (number) Power parameter
rd (number) Reduced dimension
kernel (("gaussian" | {name: "gaussian"} | function (Array<number>, Array<number>): number)? = 'gaussian') Kernel name
Instance Members
predict(x)

Detecting Subspace cluster Hierarchies

new DiSH(mu: number, e: number)
Parameters
mu (number) Number of neighborhood
e (number) Neighborhood range
Instance Members
predict(x)

Density-based Optimal projective Clustering

new DOC(alpha: number, beta: number, w: number)
Parameters
alpha (number) Dense scale
beta (number) Balanced value
w (number) Width of cluster
Instance Members
fit(datas)
predict()

Fast Density-based Optimal projective Clustering

new FastDOC(alpha: number, beta: number, w: number, maxiter: number, d0: number)
Parameters
alpha (number) Dense scale
beta (number) Balanced value
w (number) Width of cluster
maxiter (number) Maximum inner iteration
d0 (number) Threshold of selected dimension count
Instance Members
fit(datas)
predict()

Deep Q-Network agent

new DQNAgent(env: RLEnvironmentBase, resolution: number, layers: Array<LayerObject>, optimizer: string)
Parameters
env (RLEnvironmentBase) Environment
resolution (number) Resolution of actions
layers (Array<LayerObject>) Network layers
optimizer (string) Optimizer of the network
Instance Members
method
get_score()
get_action(state, greedy_rate)
update(action, state, next_state, reward, done, learning_rate, batch)

Drake's accelerated k-Means algorithm

new DrakeKMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
init(datas)
fit()
predict(datas)

Delaunay triangulation-based spatial clustering of application with noise

new DTSCAN(minPts: number?, threshold: number?)
Parameters
minPts (number? = 5) Minimum size of neighbors
threshold (number? = 1.0) Remove threshold score
Instance Members
predict(x)

Dynamic programming agent

new DPAgent(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
get_score()
get_action(state)
update(method)

Elastic net

new ElasticNet(lambda: number?, alpha: number?, method: ("ISTA" | "CD")?)
Parameters
lambda (number? = 0.1) Regularization strength
alpha (number? = 0.5) Mixing parameter
method (("ISTA" | "CD")? = 'CD') Method name
Instance Members
fit(x, y)
predict(x)
importance()

Elkan's accelerated k-Means algorithm

new ElkanKMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
init(datas)
fit()
predict(datas)

Elliptic filter

new EllipticFilter(ripple: number?, n: number?, xi: number?, c: number?)
Parameters
ripple (number? = 1) Ripple factor
n (number? = 2) Order
xi (number? = 1) Selectivity factor
c (number? = 0.5) Cutoff rate
Instance Members
predict(x)

ELMClassifier

lib/model/elm.js

Extreme learning machine classifier

new ELMClassifier(size: Array<number>, activation: ("identity" | "elu" | "gaussian" | "leaky_relu" | "sigmoid" | "softplus" | "softsign" | "tanh" | function (number): number)?)

Extends ELM

Parameters
size (Array<number>) Size of hidden layer
activation (("identity" | "elu" | "gaussian" | "leaky_relu" | "sigmoid" | "softplus" | "softsign" | "tanh" | function (number): number)? = 'tanh') Activation name
Instance Members
categories
fit(x, y)
probability(x)
predict(x)

ELMRegressor

lib/model/elm.js

Extreme learning machine regressor

new ELMRegressor(size: Array<number>, activation: ("identity" | "elu" | "gaussian" | "leaky_relu" | "sigmoid" | "softplus" | "softsign" | "tanh" | function (number): number)?)

Extends ELM

Parameters
size (Array<number>) Size of hidden layer
activation (("identity" | "elu" | "gaussian" | "leaky_relu" | "sigmoid" | "softplus" | "softsign" | "tanh" | function (number): number)? = 'tanh') Activation name
Instance Members
fit(x, y)
predict(x)

Extended Natural Neighbor

new ENaN(metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
fit(datas, targets)
predict(datas)

Extended Nearest Neighbor

new ENN(version: (0 | 1 | 2)?, k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
version ((0 | 1 | 2)? = 1) Version
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
fit(datas, targets)
predict(datas)
BinaryModel

Type: object

Properties
init (function (Array<Array<number>>, Array<any>): void) : Initialize model
fit (function (...any): void) : Fit model
predict (function (Array<Array<number>>): Array<number>) : Returns predicted values

EnsembleBinaryModel

lib/model/ensemble_binary.js

Ensemble binary models

new EnsembleBinaryModel(model: any, type: ("oneone" | "onerest"), classes: Array<any>?)
Parameters
model (any)
type (("oneone" | "onerest")) Type name
classes (Array<any>?) Initial class labels
Instance Members
init(train_x, train_y)
fit(x, y, args)
predict(data)

ExponentialMovingAverage

lib/model/exponential_average.js

Exponential moving average

new ExponentialMovingAverage(k: number)
Parameters
k (number) Degree of weighting decrease
Instance Members
predict(data)

Modified moving average

new ModifiedMovingAverage(k: number)
Parameters
k (number) Degree of weighting decrease
Instance Members
predict(data)

Bsae class for Extremely Randomized Trees

new ExtraTrees(tree_num: number, sampling_rate: number?)
Parameters
tree_num (number) Number of trees
sampling_rate (number? = 1.0) Sampling rate
Instance Members
depth
init(datas, targets)
fit()

ExtraTreesClassifier

lib/model/extra_trees.js

Extra trees classifier

new ExtraTreesClassifier(tree_num: number, sampling_rate: number?)

Extends ExtraTrees

Parameters
tree_num (number) Number of trees
sampling_rate (number? = 1.0) Sampling rate
Instance Members
predict(datas)

ExtraTreesRegressor

lib/model/extra_trees.js

Extra trees regressor

new ExtraTreesRegressor(tree_num: number, sampling_rate: number?)

Extends ExtraTrees

Parameters
tree_num (number) Number of trees
sampling_rate (number? = 1.0) Sampling rate
Instance Members
predict(datas)

FastMap

new FastMap(rd: number)
Parameters
rd (number) Reduced dimension
Instance Members
predict(x)

a Fast and INtelligent subspace clustering algorithm using DImension voting

new FINDIT(minsize: number, mindist: number)
Parameters
minsize (number) Mininum size of clusters
mindist (number) Merge threshold
Instance Members
size
fit(datas)
predict(x)

Forgetron

new Forgetron(b: number, kernel: any)
Parameters
b (number) Budget parameter
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

Fuzzy c-means

new FuzzyCMeans(m: number?)
Parameters
m (number? = 2) Fuzziness factor
Instance Members
init(datas)
add()
fit()
predict()

Fuzzy k-nearest neighbor

new FuzzyKNN(k: number?, m: number?)
Parameters
k (number? = 5) Number of neighborhoods
m (number? = 2) Factor of weight for distance
Instance Members
categories
add(point, category?)
fit(datas, targets)
predict(datas)

Generative adversarial networks

new GAN(noise_dim: number, g_hidden: Array<LayerObject>, d_hidden: Array<LayerObject>, g_opt: string, d_opt: string, class_size: (number | null), type: ("" | "conditional"))
Parameters
noise_dim (number) Number of noise dimension
g_hidden (Array<LayerObject>) Layers of generator
d_hidden (Array<LayerObject>) Layers of discriminator
g_opt (string) Optimizer of the generator network
d_opt (string) Optimizer of the discriminator network
class_size ((number | null)) Class size for conditional type
type (("" | "conditional")) Type name
Instance Members
epoch
fit(x, y, step, gen_rate, dis_rate, batch)
prob(x, y)
generate(n, y)

Gasser–Müller kernel estimator

new GasserMuller(h: number)
Parameters
h (number) Smoothing parameter for the kernel
Instance Members
fit(x, y)
predict(x)

Gaussian process

new GaussianProcess(kernel: "gaussian"?, beta: number?)
Parameters
kernel ("gaussian"? = 'gaussian') Kernel name
beta (number? = 1) Precision parameter
Instance Members
init(x, y)
fit(learning_rate)
predict(x)

Gradient boosting decision tree

new GBDT(maxdepth: number?, srate: number?, lr: number?)
Parameters
maxdepth (number? = 1) Maximum depth of tree
srate (number? = 1.0) Sampling rate
lr (number? = 0) Learning rate
Instance Members
size
init(x, y)
fit()
predict(x)

GBDTClassifier

lib/model/gbdt.js

Gradient boosting decision tree classifier

new GBDTClassifier(maxdepth: number?, srate: number?, lr: number?)

Extends GBDT

Parameters
maxdepth (number? = 1) Maximum depth of tree
srate (number? = 1.0) Sampling rate
lr (number? = 0) Learning rate
Instance Members
init(x, y)
predict(x)

Generalized extreme studentized deviate

new GeneralizedESD(alpha: number, r: number)
Parameters
alpha (number) Significance level
r (number) Max number of outliers
Instance Members
predict(data)
GeneticModel

Type: object

Properties
run (function (...any): void) : Run model
mutation (function (): GeneticModel) : Returns mutated model
mix (function (GeneticModel): GeneticModel) : Returns mixed model
score (function (): number) : Returns a number how good the model is

Genetic algorithm

new GeneticAlgorithm(size: number, model: any)
Parameters
size (number) Number of models per generation
model (any)
Instance Members
bestModel
run(args)
next(mutation_rate = 0.001)

GeneticAlgorithmGeneration

lib/model/genetic_algorithm.js

Genetic algorithm generation

new GeneticAlgorithmGeneration(env: RLEnvironmentBase, size: number?, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
size (number? = 100) Number of models per generation
resolution (number? = 20) Resolution
Instance Members
reset()
get_score()
top_agent()
run()
next(mutation_rate)

Genetic k-means model

new GeneticKMeans(k: number, size: number)
Parameters
k (number) Number of clusters
size (number) Number of models per generation
Instance Members
centroids
bestModel
init(datas)
predict(datas)
fit()

G-means

new GMeans()
Instance Members
centroids
size
clear()
fit(datas, iterations)
predict(datas)

Gaussian mixture model

new GMM()
Instance Members
add()
clear()
probability(data)
predict(data)
fit(datas)

SemiSupervisedGMM

lib/model/gmm.js

Semi-Supervised gaussian mixture model

new SemiSupervisedGMM()

Extends GMM

Instance Members
categories
init(datas, labels)
fit(datas, y)
predict(data)

Gaussian mixture regression

new GMR()

Extends GMM

Instance Members
add()
clear()
fit(x, y)
probability(x, y)
predict(x)

Gaussian Process Latent Variable Model

new GPLVM(rd: number, alpha: number, ez: number?, ea: number?, ep: number?, kernel: any)
Parameters
rd (number) Reduced dimension
alpha (number) Precision parameter
ez (number? = 1) Learning rate for z
ea (number? = 0.005) Learning rate for alpha
ep (number? = 0.2) Learning rate for kernel
kernel (any = 'gaussian')
Instance Members
init(x)
fit()
llh()
predict()
reconstruct(z)

Growing cell structures

new GrowingCellStructures()
Instance Members
size
update(x)
fit(x)
predict(datas)

Growing neural gas

new GrowingNeuralGas(l: number, m: number)
Parameters
l (number) Neughborhood range
m (number) Decreasing factor of l
Instance Members
size
update(x)
fit(x)
predict(datas)

Growing Self-Organizing Map

new GSOM(sf: number?, lr: number?)
Parameters
sf (number? = 0.1) Spread factor
lr (number? = 0.1) Learning rate
Instance Members
size
fit(data)
predict(x)

Generative topographic mapping

new GTM(input_size: number, output_size: number, k: number?, q: number?)
Parameters
input_size (number) Input size
output_size (number) Output size
k (number? = 20) Grid size
q (number? = 10) Grid size for basis function
Instance Members
probability(x)
responsibility(x)
fit(data)
predictIndex(x)
predict(x)

Hamelry's accelerated k-Means algorithm

new HamelryKMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
init(datas)
fit()
predict(datas)

Hampel filter

new HampelFilter(k: number?, th: number?)
Parameters
k (number? = 3) Half window size
th (number? = 3) Threshold
Instance Members
predict(x)

Hartigan-Wong k-Means algorithm

new HartiganWongKMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
init(datas)
predict(datas)

Hierarchical Density-based spatial clustering of applications with noise

new HDBSCAN(minClusterSize: number?, minPts: number?, metric: ("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)?)
Parameters
minClusterSize (number? = 5) Minimum number of clusters to be recognized as a cluster
minPts (number? = 5) Number of neighborhood with core distance
metric (("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
size
predict(datas)

Histogram

new Histogram(config: object?)
Parameters
config (object? = {}) Config
Instance Members
fit(datas)
predict(datas)

Hessian Locally Linear Embedding

new HLLE(k: number, rd: (number | null)?)
Parameters
k (number) Number of neighborhoods
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

Hidden Markov model

new HMMBase(n: number)
Parameters
n (number) Number of states
Instance Members
probability(x)
bestPath(x)

Hidden Markov model

new HMM(n: number)

Extends HMMBase

Parameters
n (number) Number of states
Instance Members
fit(datas, scaled)
probability(datas)
bestPath(data)

ContinuousHMM

lib/model/hmm.js

Continuous hidden Markov model

new ContinuousHMM(n: number)

Extends HMMBase

Parameters
n (number) Number of states
Instance Members
fit(x, scaled)
probability(datas)
bestPath(data)
generate(n, length)

Holt-Winters method

new HoltWinters(a: number, b: number?, g: number?, s: number?)
Parameters
a (number) Weight for last value
b (number? = 0) Weight for trend value
g (number? = 0) Weight for seasonal data
s (number? = 0) Length of season
Instance Members
fit(x)
predict(k)

HopfieldNetwork

lib/model/hopfield.js

Hopfield network

new HopfieldNetwork()
Instance Members
fit(x)
energy(x)
predict(x)

Hotelling T-square Method

new Hotelling()
Instance Members
fit(data)
predict(data)

Huber regression

new HuberRegression(e: number?, method: ("rls" | "gd")?, lr: number?)
Parameters
e (number? = 1.35) Threshold of outliers
method (("rls" | "gd")? = 'rls') Method name
lr (number? = 1) Learning rate
Instance Members
fit(x, y)
predict(x)

Independent component analysis

new ICA(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
fit(x)
predict(x)

Classical ellipsoid method

new CELLIP(gamma: number?, a: number?)
Parameters
gamma (number? = 0.1) Desired classification margin
a (number? = 0.5) Tradeoff parameter
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Improved ellipsoid method

new IELLIP(b: number?, c: number?)
Parameters
b (number? = 0.9) Parameter controlling the memory of online learning
c (number? = 0.5) Parameter controlling the memory of online learning
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Locally Informative K-Nearest Neighbor

new IKNN(k: number, i: number)
Parameters
k (number) Number of neighbors
i (number) Number of informative points
Instance Members
fit(x, y)
predict(data)

Incremental principal component analysis

new IncrementalPCA(f: number?, rd: (number | null)?)
Parameters
f (number? = 0.95) Forgetting factor
rd ((number | null)? = null) Reduced dimension
Instance Members
update(x)
fit(x)
predict(x)

Influenced Outlierness

new INFLO(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Inverse distance weighting

new InverseDistanceWeighting(k: number?, p: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
k (number? = 5) Number of neighborhoods
p (number? = 2) Power parameter
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
fit(x, y)
predict(data)

InverseSmoothstepInterpolation

lib/model/inverse_smoothstep.js

Inverse smoothstep interpolation

new InverseSmoothstepInterpolation()
Instance Members
fit(x, y)
predict(target)

Iterative Self-Organizing Data Analysis Technique

new ISODATA(init_k: number, min_k: number, max_k: number, min_n: number, split_std: number, merge_dist: number)
Parameters
init_k (number) Initial cluster count
min_k (number) Minimum cluster count
max_k (number) Maximum cluster count
min_n (number) Minimum cluster size
split_std (number) Standard deviation as splid threshold
merge_dist (number) Merge distance
Instance Members
centroids
size
init(data)
fit(data)
predict(datas)

Isolation forest

new IsolationForest(tree_num: number?, sampling_rate: number?)
Parameters
tree_num (number? = 100) Number of trees
sampling_rate (number? = 0.8) Sampling rate
Instance Members
fit(datas)
predict(datas)

Isomap

new Isomap(neighbors: number?, rd: (number | null)?)
Parameters
neighbors (number? = 0) Number of neighborhoods
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

IsotonicRegression

lib/model/isotonic.js

Isotonic regression

new IsotonicRegression()
Instance Members
fit(x, y)
predict(x)

Kalman filter

new KalmanFilter()
Instance Members
fit(z)
predict(k)

Kernel Density Estimation Outlier Score

new KDEOS(kmin: number, kmax: number, kernel: ("gaussian" | "epanechnikov" | {name: "gaussian"} | {name: "epanechnikov"} | function (number, number, number): number)?)
Parameters
kmin (number) Minimum number of neighborhoods
kmax (number) Maximum number of neighborhoods
kernel (("gaussian" | "epanechnikov" | {name: "gaussian"} | {name: "epanechnikov"} | function (number, number, number): number)? = 'gaussian') Kernel name
Instance Members
predict(datas)

Kernel density estimator

new KernelDensityEstimator(h: number?, kernel: ("gaussian" | "rectangular" | "triangular" | "epanechnikov" | "biweight" | "triweight" | {name: "gaussian"} | {name: "rectangular"} | {name: "triangular"} | {name: "epanechnikov"} | {name: "biweight"} | {name: "triweight"} | function (number): number)?)
Parameters
h (number? = 0) Smoothing parameter for the kernel
kernel (("gaussian" | "rectangular" | "triangular" | "epanechnikov" | "biweight" | "triweight" | {name: "gaussian"} | {name: "rectangular"} | {name: "triangular"} | {name: "epanechnikov"} | {name: "biweight"} | {name: "triweight"} | function (number): number)? = 'gaussian') Kernel name
Instance Members
fit(x)
probability(x)
predict(x)

Kernel k-means

new KernelKMeans(k: number?)
Parameters
k (number? = 3) Number of clusters
Instance Members
init(datas)
predict()
fit()

Kernelized Primal Estimated sub-GrAdientSOlver for SVM

new KernelizedPegasos(rate: number, kernel: any)
Parameters
rate (number) Learning rate
kernel (any = 'gaussian')
Instance Members
init(train_x, train_y)
fit()
predict(data)

Kernelized perceptron

new KernelizedPerceptron(rate: number?, kernel: any)
Parameters
rate (number? = 1) Learning rate
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

K-Harmonic Means

new KHarmonicMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
init(datas)
fit()
predict(datas)

Kullback-Leibler importance estimation procedure

new KLIEP(sigma: Array<number>, fold: number, kernelNum: number)
Parameters
sigma (Array<number>) Sigmas of normal distribution
fold (number) Number of folds
kernelNum (number) Number of kernels
Instance Members
fit(x1, x2)
predict(x)

Bsae class for k-means like model

new KMeansBase()
Instance Members
centroids
size
add(datas)
clear()
predict(datas)
fit(datas)

k-means model

new KMeans()

Extends KMeansBase

Instance Members
_add(centroids, datas)
_move(centroids, datas)

k-means++ model

new KMeanspp()

Extends KMeans

Instance Members
_add(centroids, datas)

k-medoids model

new KMedoids()

Extends KMeans

Instance Members
_move(centroids, datas)

k-medians model

new KMedians()

Extends KMeans

Instance Members
_move(centroids, datas)

SemiSupervisedKMeansModel

lib/model/kmeans.js

semi-supervised k-means model

new SemiSupervisedKMeansModel()

Extends KMeansBase

Instance Members
categories
init(datas, labels)
fit(datas, labels)
predict(datas)

k-modes model

new KModes()
Instance Members
size
add(datas)
clear()
predict(datas)
fit(datas)

Bsae class for k-nearest neighbor models

new KNNBase(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
_add(point, category?)

k-nearest neighbor

new KNN(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends KNNBase

Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict(datas)

k-nearest neighbor regression

new KNNRegression(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends KNNBase

Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict(datas)

k-nearest neighbor anomaly detection

new KNNAnomaly(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends KNNBase

Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point)
fit(datas)
predict(datas)

KNNDensityEstimation

lib/model/knearestneighbor.js

k-nearest neighbor density estimation

new KNNDensityEstimation(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends KNNBase

Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point)
fit(datas)
predict(datas)

Semi-supervised k-nearest neighbor

new SemiSupervisedKNN(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends KNNBase

Parameters
k (number? = 5) Number of neighborhoods
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict()

k-prototypes model

new KPrototypes(gamma: number, categoryPositions: Array<boolean>)
Parameters
gamma (number) Weight for categorical data
categoryPositions (Array<boolean>) Category column position
Instance Members
size
add(datas)
clear()
predict(datas)
fit(datas)

k-SVD

new KSVD(x: Array<Array<number>>, m: number, k: number?)
Parameters
x (Array<Array<number>>) Training data
m (number) Reduced dimension
k (number? = m) Sparsity parameter
Instance Members
fit()
predict()

KolmogorovZurbenkoFilter

lib/model/kz.js

Kolmogorov–Zurbenko filter

new KolmogorovZurbenkoFilter(m: number, k: number)
Parameters
m (number) Window size
k (number) Iteration count of a moving average
Instance Members
predict(x)

Label propagation

new LabelPropagation(method: ("rbf" | "knn")?, sigma: number?, k: number?)
Parameters
method (("rbf" | "knn")? = 'rbf') Method name
sigma (number? = 0.1) Sigma of normal distribution
k (number? = Infinity) Number of neighborhoods
Instance Members
init(x, y)
predict()

Label spreading

new LabelSpreading(alpha: number?, method: ("rbf" | "knn")?, sigma: number?, k: number?)
Parameters
alpha (number? = 0.2) Clamping factor
method (("rbf" | "knn")? = 'rbf') Method name
sigma (number? = 0.1) Sigma of normal distribution
k (number? = Infinity) Number of neighborhoods
Instance Members
init(x, y)
fit()
predict()

Ladder network

new LadderNetwork(hidden_sizes: Array<number>, lambdas: Array<number>, activation: string, optimizer: string)
Parameters
hidden_sizes (Array<number>) Sizes of hidden layers
lambdas (Array<number>) Regularization parameters
activation (string) Activation name
optimizer (string) Optimizer of the network
Instance Members
fit(train_x, train_y, iteration, rate, batch)
predict(x)

LagrangeInterpolation

lib/model/lagrange.js

Lagrange interpolation

new LagrangeInterpolation(method: ("weighted" | "newton" | "")?)
Parameters
method (("weighted" | "newton" | "")? = 'weighted') Method name
Instance Members
fit(x, y)
predict(target)

Lanczos interpolation

new LanczosInterpolation(n: number)
Parameters
n (number) Order
Instance Members
fit(values)
predict(index)

Laplacian edge detection

new Laplacian(th: number, n: (4 | 8)?)
Parameters
th (number) Threshold
n ((4 | 8)? = 4) Number of neighborhoods
Instance Members
predict(x)

Laplacian eigenmaps

new LaplacianEigenmaps(rd: number, affinity: ("rbf" | "knn")?, k: number?, sigma: number?, laplacian: ("unnormalized" | "normalized")?)
Parameters
rd (number) Reduced dimension
affinity (("rbf" | "knn")? = 'rbf') Affinity type name
k (number? = 10) Number of neighborhoods
sigma (number? = 1) Sigma of normal distribution
laplacian (("unnormalized" | "normalized")? = 'unnormalized') Normalized laplacian matrix or not
Instance Members
predict(x)

Least absolute shrinkage and selection operator

new Lasso(lambda: number?, method: ("CD" | "ISTA" | "LARS")?)
Parameters
lambda (number? = 0.1) Regularization strength
method (("CD" | "ISTA" | "LARS")? = 'CD') Method name
Instance Members
fit(x, y)
predict(x)
importance()

Latent dirichlet allocation

new LatentDirichletAllocation(t: number?)
Parameters
t (number? = 2) Topic count
Instance Members
init(x)
predict()

Linde-Buzo-Gray algorithm

new LBG()
Instance Members
centroids
size
clear()
fit(datas)
predict(datas)

LinearDiscriminant

lib/model/lda.js

Linear discriminant analysis

new LinearDiscriminant()
Instance Members
init(train_x, train_y)
fit()
predict(data)

FishersLinearDiscriminant

lib/model/lda.js

Fishers linear discriminant analysis

new FishersLinearDiscriminant()
Instance Members
init(train_x, train_y)
fit()
predict(data)

MulticlassLinearDiscriminant

lib/model/lda.js

Multiclass linear discriminant analysis

new MulticlassLinearDiscriminant()
Instance Members
fit(x, y)
predict(data)

LinearDiscriminantAnalysis

lib/model/lda.js

Linear discriminant analysis

new LinearDiscriminantAnalysis(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x, t)

Local Density Factor

new LDF(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Local Distance-based Outlier Factor

new LDOF(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Least absolute deviations

new LeastAbsolute()
Instance Members
fit(x, y)
predict(x)

Least squares

new LeastSquares()
Instance Members
fit(x, y)
predict(x)

LinearInterpolation

lib/model/lerp.js

Linear interpolation

new LinearInterpolation()
Instance Members
fit(x, y)
predict(target)

Locally Linear Embedding

new LLE(k: number?, rd: (number | null)?)
Parameters
k (number? = 1) Number of neighborhoods
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

LeastMedianSquaresRegression

lib/model/lmeds.js

Least median squares regression

new LeastMedianSquaresRegression(k: number)
Parameters
k (number = 5) Sampling count
Instance Members
fit(x, y)
predict(x)

Large Margin Nearest Neighbor

new LMNN(gamma: number, lambda: number)
Parameters
gamma (number) Tuning parameter
lambda (number) Tuning parameter
Instance Members
init(x, y)
fit()
predict(x)

Local Correlation Integral

new LOCI(alpha: number?)
Parameters
alpha (number? = 0.5) Alpha
Instance Members
predict(datas)

Locally estimated scatterplot smoothing

new LOESS()
Instance Members
fit(x, y)
predict(x)

Local Outlier Factor

new LOF(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Laplacian of gaussian filter

new LoG(th: number)
Parameters
th (number) Threshold
Instance Members
predict(x)

Logarithmic interpolation

new LogarithmicInterpolation()
Instance Members
fit(x, y)
predict(target)

LogisticRegression

lib/model/logistic.js

Logistic regression

new LogisticRegression()
Instance Members
fit(x, y, iteration = 1, rate = 0.1, l1 = 0, l2 = 0)
predict(points)

MultinomialLogisticRegression

lib/model/logistic.js

Multinomial logistic regression

new MultinomialLogisticRegression(classes: Array<number>?)
Parameters
classes (Array<number>?) Initial class labels
Instance Members
fit(train_x, train_y, iteration = 1, rate = 0.1, l1 = 0, l2 = 0)
predict(points)

Local Outlier Probability

new LoOP(k: number)
Parameters
k (number) Number of neighborhoods
Instance Members
predict(datas)

Locally weighted scatter plot smooth

new LOWESS()
Instance Members
fit(x, y)
predict(x)

Lowpass filter

new LowpassFilter(c: number?)
Parameters
c (number? = 0.5) Cutoff rate
Instance Members
predict(x)

LpNormLinearRegression

lib/model/lpnorm_linear.js

Lp norm linear regression

new LpNormLinearRegression(p: number?)
Parameters
p (number? = 2) Power parameter for norm
Instance Members
fit(x, y)
predict(x)

Latent Semantic Analysis

new LSA(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

Least-squares density difference

new LSDD(sigma: Array<number>, lambda: Array<number>)
Parameters
sigma (Array<number>) Sigmas of normal distribution
lambda (Array<number>) Regularization parameters
Instance Members
fit(x1, x2)
predict(x)

LSDD for change point detection

new LSDDCPD(w: number, take: number?, lag: number?)
Parameters
w (number) Window size
take (number?) Take number
lag (number?) Lag
Instance Members
predict(datas)

least-squares importance fitting

new LSIF(sigma: Array<number>, lambda: Array<number>, fold: number, kernelNum: number)
Parameters
sigma (Array<number>) Sigmas of normal distribution
lambda (Array<number>) Regularization parameters
fold (number) Number of folds
kernelNum (number) Number of kernels
Instance Members
fit(x1, x2)
predict(x)

LeastTrimmedSquaresRegression

lib/model/lts.js

Least trimmed squares

new LeastTrimmedSquaresRegression(h: number?)
Parameters
h (number? = 0.9) Sampling rate
Instance Members
fit(x, y)
predict(x)

Local Tangent Space Alignment

new LTSA(k: number, rd: (number | null)?)
Parameters
k (number) Number of neighborhoods
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

Learning Vector Quantization clustering

new LVQCluster(k: number)
Parameters
k (number) Number of clusters
Instance Members
fit(x, lr)
predict(datas)

LVQClassifier

lib/model/lvq.js

Learning Vector Quantization classifier

new LVQClassifier(type: (1 | 2 | 3))
Parameters
type ((1 | 2 | 3)) Type number
Instance Members
fit(x, y, lr)
predict(datas)

MacQueen's k-Means algorithm

new MacQueenKMeans(k: number)
Parameters
k (number) Number of clusters
Instance Members
centroids
fit(datas)
predict(datas)

Median Absolute Deviation

new MAD()
Instance Members
fit(data)
predict(data)

Many Adaptive Linear Neuron model

new MADALINE(sizes: Array<number>, rule: (1 | 2 | 3)?, rate: number)
Parameters
sizes (Array<number>) Numbers of layers
rule ((1 | 2 | 3)? = 2) Rule
rate (number) Learning rate
Instance Members
fit(x, y)
outputLayers(data, from)
predict(data)

Margin Perceptron

new MarginPerceptron(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

Markov switching

new MarkovSwitching(regime: number)
Parameters
regime (number) Number of regime
Instance Members
fit(datas, eps, trial)
probability(datas)
predict(datas)

MultivariateAdaptiveRegressionSplines

lib/model/mars.js

Multivariate Adaptive Regression Splines

new MultivariateAdaptiveRegressionSplines(mmax: number)
Parameters
mmax (number) Maximum number of terms
Instance Members
fit(x, y)
predict(x)

Max absolute scaler

new MaxAbsScaler()
Instance Members
fit(x)
predict(x)
inverse(z)

MaximumLikelihoodEstimator

lib/model/maximum_likelihood.js

Maximum likelihood estimator

new MaximumLikelihoodEstimator(distribution: "normal"?)
Parameters
distribution ("normal"? = 'normal') Distribution name
Instance Members
fit(x)
probability(x)
predict(x)

Minimum Covariance Determinant

new MCD(datas: Array<Array<number>>, sampling_rate: number)
Parameters
datas (Array<Array<number>>) Training data
sampling_rate (number) Sampling rate
Instance Members
fit()
predict(data)

MixtureDiscriminant

lib/model/mda.js

Mixture discriminant analysis

new MixtureDiscriminant(r: number)
Parameters
r (number) Number of components
Instance Members
init(x, y)
fit()
predict(data)

Multi-dimensional Scaling

new MDS(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x, dmat = false)

Mean shift

new MeanShift(h: number, threshold: number)
Parameters
h (number) Smoothing parameter for the kernel
threshold (number) Threshold
Instance Members
categories
init(data)
predict()
fit()

MetropolisHastings

lib/model/mh.js

Metropolis-Hastings algorithm

new MetropolisHastings(targetFunc: function (Array<number>): number, d: number, q: "gaussian"?)
Parameters
targetFunc (function (Array<number>): number) Target distribution
d (number) Output size
q ("gaussian"? = 'gaussian') Proposal density name
Instance Members
sample(n, t = 100)

MinmaxNormalization

lib/model/minmax.js

Min-max normalization

new MinmaxNormalization(min: number?, max: number?)
Parameters
min (number? = 0) Minimum value
max (number? = 1) Maximum value
Instance Members
fit(x)
predict(x)
inverse(z)

Margin Infused Relaxed Algorithm

new MIRA()
Instance Members
update(x, y)
fit(x, y)
predict(data)

Modified Locally Linear Embedding

new MLLE(k: number, rd: (number | null)?)
Parameters
k (number) Number of neighborhoods
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(data)

MLPClassifier

lib/model/mlp.js

Multi layer perceptron classifier

new MLPClassifier(hidden_sizes: Array<number>, activation: ("identity" | "elu" | "gaussian" | "leaky_relu" | "relu" | "sigmoid" | "softplus" | "softsign" | "tanh")?)
Parameters
hidden_sizes (Array<number>) Sizes of hidden layers
activation (("identity" | "elu" | "gaussian" | "leaky_relu" | "relu" | "sigmoid" | "softplus" | "softsign" | "tanh")? = 'tanh') Activation name
Instance Members
categories
epoch
toObject()
fit(train_x, train_y, iteration, rate = 0.001, batch = 0)
probability(x)
predict(x)

MLPRegressor

lib/model/mlp.js

Multi layer perceptron regressor

new MLPRegressor(hidden_sizes: Array<number>, activation: ("identity" | "elu" | "gaussian" | "leaky_relu" | "relu" | "sigmoid" | "softplus" | "softsign" | "tanh")?)
Parameters
hidden_sizes (Array<number>) Sizes of hidden layers
activation (("identity" | "elu" | "gaussian" | "leaky_relu" | "relu" | "sigmoid" | "softplus" | "softsign" | "tanh")? = 'tanh') Activation name
Instance Members
epoch
toObject()
fit(train_x, train_y, iteration, rate = 0.001, batch = 0)
predict(x)

Method of Optimal Direction

new MOD(x: Array<Array<number>>, m: number, k: number?)
Parameters
x (Array<Array<number>>) Training data
m (number) Reduced dimension
k (number? = m) Sparsity parameter
Instance Members
fit()
predict()

MONothetic Analysis Clustering

new MONA()
Instance Members
size
init(datas)
fit()
predict()

MonotheticClustering

lib/model/monothetic.js

Monothetic Clustering

new MonotheticClustering()
Instance Members
size
init(datas)
fit()
predict()

Monte Carlo agent

new MCAgent(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
reset()
get_score()
get_action(state, greedy_rate)
update(action, state, reward, done)

Mountain method

new Mountain(r: number, alpha: number, beta: number)
Parameters
r (number) Resolution of grid
alpha (number) Tuning parameter
beta (number) Tuning parameter
Instance Members
init(datas)
fit()
predict(data)

SimpleMovingAverage

lib/model/moving_average.js

Simple moving average

new SimpleMovingAverage(n: number)
Parameters
n (number) Window size
Instance Members
predict(data)

LinearWeightedMovingAverage

lib/model/moving_average.js

Linear weighted moving average

new LinearWeightedMovingAverage(n: number)
Parameters
n (number) Window size
Instance Members
predict(data)

TriangularMovingAverage

lib/model/moving_average.js

Triangular moving average

new TriangularMovingAverage(k: number)
Parameters
k (number) Window size
Instance Members
predict(data)

Moving median

new MovingMedian(n: number)
Parameters
n (number) Window size
Instance Members
predict(data)

Mahalanobis Taguchi method

new MT()
Instance Members
fit(data)
predict(data)

MutualInformationFeatureSelection

lib/model/mutual_information.js

Mutual information feature selector

new MutualInformationFeatureSelection(k: number)
Parameters
k (number) Number of selected features
Instance Members
fit(x, y)
predict(x)

Mutual k-nearest-neighbor model

new MutualKNN(k: number?)
Parameters
k (number? = 5) Number of neighborhoods
Instance Members
size
fit(datas)
predict()

n-cubic interpolation

new NCubicInterpolation()
Instance Members
fit(values, grids)
predict(x)

n-linear interpolation

new NLinearInterpolation()
Instance Members
fit(values, grids)
predict(x)

Nadaraya–Watson kernel regression

new NadarayaWatson(s: number?)
Parameters
s (number?) Sigmas of normal distribution
Instance Members
fit(x, y)
predict(x)

Naive bayes

new NaiveBayes(distribution: "gaussian"?)
Parameters
distribution ("gaussian"? = 'gaussian') Distribution name
Instance Members
fit(datas, labels)
probability(data)
predict(data)

Naive bayes regression

new NaiveBayesRegression(categoryPositions: Array<boolean>)
Parameters
categoryPositions (Array<boolean>) Category column position
Instance Members
fit(x, y)
predict(x)

Narrow Adaptive Regularization Of Weights

new NAROW(b: number?)
Parameters
b (number? = 1) Tuning parameter
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Natural neighbor interpolation

new NaturalNeighborInterpolation()
Instance Members
fit(x, y)
predict(x)

NeighbourhoodComponentsAnalysis

lib/model/nca.js

Neighbourhood components analysis

new NeighbourhoodComponentsAnalysis(d: number?, lr: number?)
Parameters
d (number? = null) Reduced dimension
lr (number? = 0.1) Learning rate
Instance Members
fit(x, y)
importance()
predict(x)

Nearest centroid classifier

new NearestCentroid(metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict(datas)

Negation Naive bayes

new NegationNaiveBayes(distribution: "gaussian"?)
Parameters
distribution ("gaussian"? = 'gaussian') Distribution name
Instance Members
fit(datas, labels)
predict(data)

Neural gas model

new NeuralGas(l: number?, m: number?)
Parameters
l (number? = 1) Neughborhood range
m (number? = 0.99) Decreasing factor of l
Instance Members
centroids
size
add(datas)
clear()
predict(datas)
fit(datas)

NeuralnetworkException

lib/model/neuralnetwork.js

Exception for neuralnetwork class

new NeuralnetworkException(message: string, value: any)

Extends Error

Parameters
message (string) Error message
value (any) Some value

Neuralnetwork

new NeuralNetwork(graph: ComputationalGraph, optimizer: ("sgd" | "adam" | "momentum" | "adagrad" | "rmsprop" | "adadelta" | "rmspropgraves" | "smorms3" | "adamax" | "nadam" | "santae" | "santasss" | "amsgrad" | "adabound" | "amsbound" | "adabelief")?)
Parameters
graph (ComputationalGraph) Graph of a network
optimizer (("sgd" | "adam" | "momentum" | "adagrad" | "rmsprop" | "adadelta" | "rmspropgraves" | "smorms3" | "adamax" | "nadam" | "santae" | "santasss" | "amsgrad" | "adabound" | "amsbound" | "adabelief")? = 'sgd') Optimizer of the network
Static Members
fromObject(layers, loss?, optimizer = 'sgd')
fromONNX(buffer)
Instance Members
copy()
toObject()
calc(x, t?, out?, options = {})
grad(e?)
update(learning_rate)
fit(x, t, epoch = 1, learning_rate = 0.1, batch_size = null, options = {})
predict(x)

NeuralnetworkLayerException

lib/model/nns/layer/base.js

Exception for neuralnetwork layer class

new NeuralnetworkLayerException(message: string, value: any)

Extends Error

Parameters
message (string) Error message
value (any) Some value

Neuralnetwork layer

new Layer(obj: object)
Parameters
obj (object) Config
Static Members
fromObject(obj)
registLayer(name?, cls?)
Instance Members
bind(values)
calc(x)
grad(bo)
update(optimizer)
toObject()

Base class for Flow-based generative model

new FlowLayer()

Extends Layer

Instance Members
inverse(y)
jacobianDeterminant()
Node

Type: object

Properties
layer (Layer) : Layer
name (string) : Name of the node
input (Array<string>?) : Input node names
outputValue ((Matrix | Array<Matrix>)?) : Output value of this node to next layer
gradientValue (Array<Matrix>?) : Gradient value of this node from next layer

ComputationalGraph

lib/model/nns/graph.js

Computational graph for Neuralnetwork structure

new ComputationalGraph()
Static Members
fromObject(nodes)
fromONNX(buffer)
Instance Members
nodes
inputNodes
outputNodes
size
toObject()
toDot()
add(layer, name?, inputs = undefined)
bind(values)
calc(require?)
grad(e?)
getNode(name)

Additive coupling layer

new AdditiveCoupling($0: Object, config: object)

Extends FlowLayer

Parameters
$0 (Object)
NameDescription
$0.d any (default null)
$0.net any (default null)
$0.rest ...any
config (object) object

AdaptivePiecewiseLinearLayer

lib/model/nns/layer/apl.js

Adaptive piecewise linear layer

new AdaptivePiecewiseLinearLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.s any (default 2)
$0.a any (default 0.1)
$0.b any (default 0)
$0.rest ...any
config (object) object

Aranda layer

new ArandaLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.l any (default 2)
$0.rest ...any
config (object) object

Argmax layer

new ArgmaxLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) object

Argmin layer

new ArgminLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) object

Attention layer

new AttentionLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.dk any (default null)
$0.dv any (default null)
$0.wq any (default null)
$0.wk any (default null)
$0.wv any (default null)
$0.rest ...any
config (object) object

Average pool layer

new AveragePoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.kernel any
$0.stride any (default null)
$0.padding any (default null)
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

Batch normalization layer

new BatchNormalizationLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.scale any (default 1)
$0.offset any (default 0)
$0.epsilon any (default 1.0e-12)
$0.channel_dim any (default -1)
$0.input_mean any
$0.input_var any
$0.rest ...any
config (object) object

BimodalDerivativeAdaptiveActivationLayer

lib/model/nns/layer/bdaa.js

Bimodal derivative adaptive activation layer

new BimodalDerivativeAdaptiveActivationLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.rest ...any
config (object) object

BendableLinearUnitLayer

lib/model/nns/layer/blu.js

Bendable linear unit layer

new BendableLinearUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 0.1)
$0.rest ...any
config (object) object

Bounded ReLU layer

new BoundedReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.rest ...any
config (object) object

ContinuouslyDifferentiableELULayer

lib/model/nns/layer/celu.js

Continuously differentiable ELU layer

new ContinuouslyDifferentiableELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1.0)
$0.rest ...any
config (object) object

Clip layer

new ClipLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.min any (default null)
$0.max any (default null)
$0.rest ...any
config (object) object

Concat layer

new ConcatLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default 1)
$0.rest ...any
config (object) object

Condition layer

new CondLayer()

Extends Layer

Constant layer

new ConstLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.value any
$0.rest ...any
config (object) object

Convolutional layer

new ConvLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.kernel any
$0.channel any (default null)
$0.stride any (default null)
$0.padding any (default null)
$0.w any (default null)
$0.activation any (default null)
$0.l2_decay any (default 0)
$0.l1_decay any (default 0)
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

ConcatenatedReLULayer

lib/model/nns/layer/crelu.js

Concatenated ReLU layer

new ConcatenatedReLULayer()

Extends Layer

Dropout layer

new DropoutLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.drop_rate any (default 0.5)
$0.rest ...any
config (object) object

Elastic ELU layer

new ElasticELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.k any (default 1)
$0.alpha any (default 1)
$0.beta any (default 1)
$0.rest ...any
config (object) object

ELU layer

new ELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.rest ...any
config (object) object

Embedding layer

new EmbeddingLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any (default 512)
$0.embeddings any (default {})
$0.rest ...any
config (object) object

Elastic ReLU layer

new ElasticReLULayer($0: Object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.rest ...any

E-swish layer

new ESwishLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 1)
$0.rest ...any
config (object) object

Fast ELU layer

new FastELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.rest ...any
config (object) object

Flatten layer

new FlattenLayer()

Extends Layer

Flexible ReLU layer

new FlexibleReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.b any (default 0)
$0.rest ...any
config (object) object

Fully connected layer

new FullyConnected($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.out_size any
$0.w any (default null)
$0.b any (default null)
$0.activation any (default null)
$0.l2_decay any (default 0)
$0.l1_decay any (default 0)
$0.rest ...any
config (object) object

Function layer

new FunctionLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.func any
$0.rest ...any
config (object) config

Gaussian layer

new GaussianLayer()

Extends Layer

Global average pool layer

new GlobalAveragePoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

Global Lp pool layer

new GlobalLpPoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.p any (default 2)
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

Global max pool layer

new GlobalMaxPoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

GraphConvolutionalLayer

lib/model/nns/layer/graph_conv.js

Graph convolutional layer

new GraphConvolutionalLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.out_size any
$0.w any (default null)
$0.b any (default null)
$0.activation any (default null)
$0.l2_decay any (default 0)
$0.l1_decay any (default 0)
$0.rest ...any
config (object) object

Graph SAGE layer

new GraphSAGELayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.out_size any
$0.aggregate any (default 'mean')
$0.w any (default null)
$0.b any (default null)
$0.activation any (default null)
$0.l2_decay any (default 0)
$0.l1_decay any (default 0)
$0.rest ...any
config (object) object

GRU layer

new GRULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.return_sequences any (default false)
$0.w_z any (default null)
$0.w_r any (default null)
$0.w_h any (default null)
$0.u_z any (default null)
$0.u_r any (default null)
$0.u_h any (default null)
$0.b_z any (default null)
$0.b_r any (default null)
$0.b_h any (default null)
$0.sequence_dim any (default 1)
$0.rest ...any
config (object) object

Hard shrink layer

new HardShrinkLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.l any (default 0.5)
$0.rest ...any
config (object) object

Hard sigmoid layer

new HardSigmoidLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 0.2)
$0.beta any (default 0.5)
$0.rest ...any
config (object) object

Hard tanh layer

new HardTanhLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.v any (default 1)
$0.rest ...any
config (object) object

Hexpo layer

new HexpoLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.b any (default 1)
$0.c any (default 1)
$0.d any (default 1)
$0.rest ...any
config (object) object

Huber loss layer

new HuberLayer()

Extends Layer

Include layer

new IncludeLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.net any
$0.input_to any (default null)
$0.train any (default true)
$0.rest ...any
config (object) object

Input layer

new InputLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.name any (default null)
$0.rest ...any
config (object) object

Improved sigmoid layer

new ImprovedSigmoidLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.alpha any (default 1)
$0.rest ...any
config (object) object

Layer normalization layer

new LayerNormalizationLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.epsilon any (default 1.0e-12)
$0.scale any (default 1)
$0.offset any (default 0)
$0.rest ...any
config (object) object

Leaky ReLU layer

new LeakyReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 0.1)
$0.rest ...any
config (object) config

Log softmax layer

new LogSoftmaxLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.rest ...any
config (object) object

Lp pool layer

new LpPoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.p any (default 2)
$0.kernel any
$0.stride any (default null)
$0.padding any (default null)
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

LRN layer

new LRNLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 0.0001)
$0.beta any (default 0.75)
$0.k any (default 2)
$0.n any
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

LSTM layer

new LSTMLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.return_sequences any (default false)
$0.w_z any (default null)
$0.w_in any (default null)
$0.w_for any (default null)
$0.w_out any (default null)
$0.r_z any (default null)
$0.r_in any (default null)
$0.r_for any (default null)
$0.r_out any (default null)
$0.p_in any (default null)
$0.p_for any (default null)
$0.p_out any (default null)
$0.b_z any (default null)
$0.b_in any (default null)
$0.b_for any (default null)
$0.b_out any (default null)
$0.sequence_dim any (default 1)
$0.rest ...any
config (object) object

Matrix multiply layer

new MatmulLayer()

Extends Layer

Max pool layer

new MaxPoolLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.kernel any
$0.stride any (default null)
$0.padding any (default null)
$0.channel_dim any (default -1)
$0.rest ...any
config (object) object

Reduce mean layer

new MeanLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

MultipleParametricELULayer

lib/model/nns/layer/mpelu.js

Multiple parametric ELU layer

new MultipleParametricELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.beta any (default 1)
$0.rest ...any
config (object) config

MSE loss layer

new MSELayer()

Extends Layer

MultibinTrainableLinearUnitLayer

lib/model/nns/layer/mtlu.js

Multibin trainable linear unit layer

new MultibinTrainableLinearUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.b any (default 0)
$0.c any (default null)
$0.k any (default 10)
$0.rest ...any
config (object) config

NaturalLogarithmReLULayer

lib/model/nns/layer/nlrelu.js

Natural logarithm ReLU layer

new NaturalLogarithmReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 1)
$0.rest ...any
config (object) config

One-hot layer

new OnehotLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.class_size any (default null)
$0.values any (default [])
$0.rest ...any
config (object) config

Output layer

new OutputLayer()

Extends Layer

PadeActivationUnitLayer

lib/model/nns/layer/pau.js

Pade activation unit layer

new PadeActivationUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.m any (default 2)
$0.n any (default 2)
$0.a any (default 0.1)
$0.b any (default 0)
$0.rest ...any
config (object) config

ParametricDeformableELULayer

lib/model/nns/layer/pdelu.js

Parametric deformable ELU layer

new ParametricDeformableELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.t any (default 0.1)
$0.alpha any (default 1)
$0.rest ...any
config (object) config

ParametricELULayer

lib/model/nns/layer/pelu.js

Parametric ELU layer

new ParametricELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.b any (default 1)
$0.rest ...any
config (object) config

PiecewiseLinearUnitLayer

lib/model/nns/layer/plu.js

Piecewise linear unit layer

new PiecewiseLinearUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 0.1)
$0.c any (default 1)
$0.rest ...any
config (object) config

ParametricReLULayer

lib/model/nns/layer/prelu.js

Parametric ReLU layer

new ParametricReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 0.25)
$0.rest ...any
config (object) config

ParametricRectifiedExponentialUnitLayer

lib/model/nns/layer/preu.js

Parametric rectified exponential unit layer

new ParametricRectifiedExponentialUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.beta any (default 1)
$0.rest ...any
config (object) config

Reduce product layer

new ProdLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

ParametricSigmoidFunctionLayer

lib/model/nns/layer/psf.js

Parametric sigmoid function layer

new ParametricSigmoidFunctionLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.m any (default 2)
$0.rest ...any
config (object) config

Penalized tanh layer

new PenalizedTanhLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 0.25)
$0.rest ...any
config (object) config

ParametricTanhLinearUnitLayer

lib/model/nns/layer/ptelu.js

Parametric tanh linear unit layer

new ParametricTanhLinearUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.beta any (default 1)
$0.rest ...any
config (object) config

Random layer

new RandomLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.mean any (default 0)
$0.variance any (default 1)
$0.rest ...any
config (object) config

Readout layer

new ReadoutLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.method any (default 'mean')
$0.rest ...any
config (object) config

Reduce max layer

new ReduceMaxLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

Reduce min layer

new ReduceMinLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

RectifiedPowerUnitLayer

lib/model/nns/layer/repu.js

Rectified power unit layer

new RectifiedPowerUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.s any (default 2)
$0.rest ...any
config (object) config

Reshape layer

new ReshapeLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.rest ...any
config (object) config

Simple RNN layer

new RNNLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.activation any (default 'tanh')
$0.return_sequences any (default false)
$0.w_x any (default null)
$0.w_h any (default null)
$0.b_x any (default null)
$0.b_h any (default null)
$0.sequence_dim any (default 1)
$0.rest ...any
config (object) object

RandomizedReLULayer

lib/model/nns/layer/rrelu.js

Randomized ReLU layer

new RandomizedReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.l any (default 1.0/8)
$0.u any (default 1.0/3)
$0.rest ...any
config (object) config

RandomTranslationReLULayer

lib/model/nns/layer/rtrelu.js

Random translation ReLU layer

new RandomTranslationReLULayer($0: Object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.rest ...any

Scaled ELU layer

new ScaledELULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1.67326319217681884765625)
$0.g any (default 1.05070102214813232421875)
$0.rest ...any
config (object) config

Sigmoid layer

new SigmoidLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.rest ...any
config (object) config

SelfLearnableAFLayer

lib/model/nns/layer/slaf.js

Self learnable AF layer

new SelfLearnableAFLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.n any (default 3)
$0.a any (default 1)
$0.rest ...any
config (object) config

SoftplusLinearUnitLayer

lib/model/nns/layer/slu.js

Softplus linear unit layer

new SoftplusLinearUnitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 1)
$0.beta any (default 1)
$0.gamma any (default 0)
$0.rest ...any
config (object) config

Soft shrink layer

new SoftShrinkLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.l any (default 0.5)
$0.rest ...any
config (object) config

Softargmax layer

new SoftargmaxLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 10000)
$0.rest ...any
config (object) config

Softmax layer

new SoftmaxLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.rest ...any
config (object) object

Softmin layer

new SoftminLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.rest ...any
config (object) object

Softplus layer

new SoftplusLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 1)
$0.rest ...any
config (object) config

Sparse layer

new SparseLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.rho any
$0.beta any
$0.rest ...any
config (object) config

Split layer

new SplitLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default 1)
$0.size any
$0.rest ...any
config (object) config

Shifted ReLU layer

new ShiftedReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.d any (default 0)
$0.rest ...any
config (object) config

Soft root sign layer

new SoftRootSignLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.alpha any (default 3)
$0.beta any (default 2)
$0.rest ...any
config (object) config

Scaled tanh layer

new ScaledTanhLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1)
$0.b any (default 1)
$0.rest ...any
config (object) config

Standard deviation layer

new StdLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

Reduce sum layer

new SumLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

Supervisor layer

new SupervisorLayer()

Extends Layer

Swish layer

new SwishLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.beta any (default 1)
$0.rest ...any
config (object) config

Trainable AF layer

new TrainableAFLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 0)
$0.b any (default 0)
$0.rest ...any
config (object) config

Thresholded ReLU layer

new ThresholdedReLULayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.a any (default 1.0)
$0.rest ...any
config (object) config

Transpose layer

new TransposeLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any
$0.rest ...any
config (object) config

Variable layer

new VariableLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.size any
$0.l2_decay any (default 0)
$0.l1_decay any (default 0)
$0.value any (default null)
$0.rest ...any
config (object) config

Variance layer

new VarLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default -1)
$0.keepdims any (default true)
$0.rest ...any
config (object) config

ONNX importer

new ONNXImporter()
Static Members
load(buffer)
jspb

Generated by JsPbCodeGenerator.

new AttributeProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
AttributeType
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getName()
setName(value)
clearName()
hasName()
getRefAttrName()
setRefAttrName(value)
clearRefAttrName()
hasRefAttrName()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getType()
setType(value)
clearType()
hasType()
getF()
setF(value)
clearF()
hasF()
getI()
setI(value)
clearI()
hasI()
getS()
getS_asB64()
getS_asU8()
setS(value)
clearS()
hasS()
getT()
setT(value)
clearT()
hasT()
getG()
setG(value)
clearG()
hasG()
getSparseTensor()
setSparseTensor(value)
clearSparseTensor()
hasSparseTensor()
getTp()
setTp(value)
clearTp()
hasTp()
getFloatsList()
setFloatsList(value)
addFloats(value, opt_index?)
clearFloatsList()
getIntsList()
setIntsList(value)
addInts(value, opt_index?)
clearIntsList()
getStringsList()
getStringsList_asB64()
getStringsList_asU8()
setStringsList(value)
addStrings(value, opt_index?)
clearStringsList()
getTensorsList()
setTensorsList(value)
addTensors(opt_value?, opt_index?)
clearTensorsList()
getGraphsList()
setGraphsList(value)
addGraphs(opt_value?, opt_index?)
clearGraphsList()
getSparseTensorsList()
setSparseTensorsList(value)
addSparseTensors(opt_value?, opt_index?)
clearSparseTensorsList()
getTypeProtosList()
setTypeProtosList(value)
addTypeProtos(opt_value?, opt_index?)
clearTypeProtosList()

Generated by JsPbCodeGenerator.

new ValueInfoProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getName()
setName(value)
clearName()
hasName()
getType()
setType(value)
clearType()
hasType()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()

Generated by JsPbCodeGenerator.

new NodeProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getInputList()
setInputList(value)
addInput(value, opt_index?)
clearInputList()
getOutputList()
setOutputList(value)
addOutput(value, opt_index?)
clearOutputList()
getName()
setName(value)
clearName()
hasName()
getOpType()
setOpType(value)
clearOpType()
hasOpType()
getDomain()
setDomain(value)
clearDomain()
hasDomain()
getOverload()
setOverload(value)
clearOverload()
hasOverload()
getAttributeList()
setAttributeList(value)
addAttribute(opt_value?, opt_index?)
clearAttributeList()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()

Generated by JsPbCodeGenerator.

new TrainingInfoProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getInitialization()
setInitialization(value)
clearInitialization()
hasInitialization()
getAlgorithm()
setAlgorithm(value)
clearAlgorithm()
hasAlgorithm()
getInitializationBindingList()
setInitializationBindingList(value)
addInitializationBinding(opt_value?, opt_index?)
clearInitializationBindingList()
getUpdateBindingList()
setUpdateBindingList(value)
addUpdateBinding(opt_value?, opt_index?)
clearUpdateBindingList()

Generated by JsPbCodeGenerator.

new ModelProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getIrVersion()
setIrVersion(value)
clearIrVersion()
hasIrVersion()
getOpsetImportList()
setOpsetImportList(value)
addOpsetImport(opt_value?, opt_index?)
clearOpsetImportList()
getProducerName()
setProducerName(value)
clearProducerName()
hasProducerName()
getProducerVersion()
setProducerVersion(value)
clearProducerVersion()
hasProducerVersion()
getDomain()
setDomain(value)
clearDomain()
hasDomain()
getModelVersion()
setModelVersion(value)
clearModelVersion()
hasModelVersion()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getGraph()
setGraph(value)
clearGraph()
hasGraph()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()
getTrainingInfoList()
setTrainingInfoList(value)
addTrainingInfo(opt_value?, opt_index?)
clearTrainingInfoList()
getFunctionsList()
setFunctionsList(value)
addFunctions(opt_value?, opt_index?)
clearFunctionsList()

StringStringEntryProto

lib/model/nns/onnx/onnx_pb.js

Generated by JsPbCodeGenerator.

new StringStringEntryProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getKey()
setKey(value)
clearKey()
hasKey()
getValue()
setValue(value)
clearValue()
hasValue()

Generated by JsPbCodeGenerator.

new TensorAnnotation(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getTensorName()
setTensorName(value)
clearTensorName()
hasTensorName()
getQuantParameterTensorNamesList()
setQuantParameterTensorNamesList(value)
addQuantParameterTensorNames(opt_value?, opt_index?)
clearQuantParameterTensorNamesList()

Generated by JsPbCodeGenerator.

new GraphProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getNodeList()
setNodeList(value)
addNode(opt_value?, opt_index?)
clearNodeList()
getName()
setName(value)
clearName()
hasName()
getInitializerList()
setInitializerList(value)
addInitializer(opt_value?, opt_index?)
clearInitializerList()
getSparseInitializerList()
setSparseInitializerList(value)
addSparseInitializer(opt_value?, opt_index?)
clearSparseInitializerList()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getInputList()
setInputList(value)
addInput(opt_value?, opt_index?)
clearInputList()
getOutputList()
setOutputList(value)
addOutput(opt_value?, opt_index?)
clearOutputList()
getValueInfoList()
setValueInfoList(value)
addValueInfo(opt_value?, opt_index?)
clearValueInfoList()
getQuantizationAnnotationList()
setQuantizationAnnotationList(value)
addQuantizationAnnotation(opt_value?, opt_index?)
clearQuantizationAnnotationList()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()

Generated by JsPbCodeGenerator.

new TensorProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
new Segment(opt_data?)
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
DataLocation
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getDimsList()
setDimsList(value)
addDims(value, opt_index?)
clearDimsList()
getDataType()
setDataType(value)
clearDataType()
hasDataType()
getSegment()
setSegment(value)
clearSegment()
hasSegment()
getFloatDataList()
setFloatDataList(value)
addFloatData(value, opt_index?)
clearFloatDataList()
getInt32DataList()
setInt32DataList(value)
addInt32Data(value, opt_index?)
clearInt32DataList()
getStringDataList()
getStringDataList_asB64()
getStringDataList_asU8()
setStringDataList(value)
addStringData(value, opt_index?)
clearStringDataList()
getInt64DataList()
setInt64DataList(value)
addInt64Data(value, opt_index?)
clearInt64DataList()
getName()
setName(value)
clearName()
hasName()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getRawData()
getRawData_asB64()
getRawData_asU8()
setRawData(value)
clearRawData()
hasRawData()
getExternalDataList()
setExternalDataList(value)
addExternalData(opt_value?, opt_index?)
clearExternalDataList()
getDataLocation()
setDataLocation(value)
clearDataLocation()
hasDataLocation()
getDoubleDataList()
setDoubleDataList(value)
addDoubleData(value, opt_index?)
clearDoubleDataList()
getUint64DataList()
setUint64DataList(value)
addUint64Data(value, opt_index?)
clearUint64DataList()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()

Generated by JsPbCodeGenerator.

new SparseTensorProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getValues()
setValues(value)
clearValues()
hasValues()
getIndices()
setIndices(value)
clearIndices()
hasIndices()
getDimsList()
setDimsList(value)
addDims(value, opt_index?)
clearDimsList()

Generated by JsPbCodeGenerator.

new TensorShapeProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
new Dimension(opt_data?)
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getDimList()
setDimList(value)
addDim(opt_value?, opt_index?)
clearDimList()

Generated by JsPbCodeGenerator.

new TypeProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
new Tensor(opt_data?)
new Sequence(opt_data?)
new Map(opt_data?)
new Optional(opt_data?)
new SparseTensor(opt_data?)
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
getValueCase()
toObject(opt_includeInstance?)
serializeBinary()
getTensorType()
setTensorType(value)
clearTensorType()
hasTensorType()
getSequenceType()
setSequenceType(value)
clearSequenceType()
hasSequenceType()
getMapType()
setMapType(value)
clearMapType()
hasMapType()
getOptionalType()
setOptionalType(value)
clearOptionalType()
hasOptionalType()
getSparseTensorType()
setSparseTensorType(value)
clearSparseTensorType()
hasSparseTensorType()
getDenotation()
setDenotation(value)
clearDenotation()
hasDenotation()

Generated by JsPbCodeGenerator.

new OperatorSetIdProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getDomain()
setDomain(value)
clearDomain()
hasDomain()
getVersion()
setVersion(value)
clearVersion()
hasVersion()

Generated by JsPbCodeGenerator.

new FunctionProto(opt_data: Array?)

Extends jspb.Message

Parameters
opt_data (Array?) Optional initial data array, typically from a server response, or constructed directly in Javascript. The array is used in place and becomes part of the constructed object. It is not cloned. If no data is provided, the constructed object will be empty, but still valid.
Static Members
displayName
toObject(includeInstance, msg)
deserializeBinary(bytes)
deserializeBinaryFromReader(msg, reader)
serializeBinaryToWriter(message, writer)
Instance Members
toObject(opt_includeInstance?)
serializeBinary()
getName()
setName(value)
clearName()
hasName()
getInputList()
setInputList(value)
addInput(value, opt_index?)
clearInputList()
getOutputList()
setOutputList(value)
addOutput(value, opt_index?)
clearOutputList()
getAttributeList()
setAttributeList(value)
addAttribute(value, opt_index?)
clearAttributeList()
getAttributeProtoList()
setAttributeProtoList(value)
addAttributeProto(opt_value?, opt_index?)
clearAttributeProtoList()
getNodeList()
setNodeList(value)
addNode(opt_value?, opt_index?)
clearNodeList()
getDocString()
setDocString(value)
clearDocString()
hasDocString()
getOpsetImportList()
setOpsetImportList(value)
addOpsetImport(opt_value?, opt_index?)
clearOpsetImportList()
getDomain()
setDomain(value)
clearDomain()
hasDomain()
getOverload()
setOverload(value)
clearOverload()
hasOverload()
getValueInfoList()
setValueInfoList(value)
addValueInfo(opt_value?, opt_index?)
clearValueInfoList()
getMetadataPropsList()
setMetadataPropsList(value)
addMetadataProps(opt_value?, opt_index?)
clearMetadataPropsList()
Version

Type: number

OperatorStatus

Type: number

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readString

Type: string

readEnum

Type: !proto.onnx.AttributeProto.AttributeType

readEnum

Type: !proto.onnx.TensorProto.DataLocation

readFloat

Type: number

readInt64

Type: number

readInt64

Type: number

readInt64

Type: number

readInt64

Type: number

readInt64

Type: number

readInt64

Type: number

readInt64

Type: number

readBytes

Type: !Uint8Array

readBytes

Type: !Uint8Array

readBytes

Type: !Uint8Array

readBytes

Type: !Uint8Array

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

isDelimited

Type: !Array<number>

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: !proto.onnx.AttributeProto.AttributeType

getField

Type: number

getField

Type: number

getField

Type: !(string | Uint8Array)

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: number

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: number

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: number

getField

Type: string

getField

Type: string

getField

Type: !(string | Uint8Array)

getField

Type: !proto.onnx.TensorProto.DataLocation

getField

Type: number

getField

Type: number

getField

Type: number

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: number

getField

Type: number

getField

Type: number

getField

Type: string

getField

Type: number

getField

Type: string

getField

Type: string

getField

Type: string

getField

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: !proto.onnx.AttributeProto.AttributeType

getFieldWithDefault

Type: number

getFieldWithDefault

Type: !(string | Uint8Array)

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: number

getFieldWithDefault

Type: number

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: !(string | Uint8Array)

getFieldWithDefault

Type: !proto.onnx.TensorProto.DataLocation

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: number

getFieldWithDefault

Type: number

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: number

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFieldWithDefault

Type: string

getFloatingPointFieldWithDefault

lib/model/nns/onnx/onnx_pb.js
getFloatingPointFieldWithDefault

Type: number

bytesAsB64

Type: string

bytesAsB64

Type: string

bytesAsU8

Type: !Uint8Array

bytesAsU8

Type: !Uint8Array

getWrapperField

Type: proto.onnx.TensorProto?

getWrapperField

Type: proto.onnx.GraphProto?

getWrapperField

Type: proto.onnx.SparseTensorProto?

getWrapperField

Type: proto.onnx.TypeProto?

getWrapperField

Type: proto.onnx.TypeProto?

getWrapperField

Type: proto.onnx.GraphProto?

getWrapperField

Type: proto.onnx.GraphProto?

getWrapperField

Type: proto.onnx.GraphProto?

getWrapperField

Type: proto.onnx.TensorProto.Segment?

getWrapperField

Type: proto.onnx.TensorProto?

getWrapperField

Type: proto.onnx.TensorProto?

getWrapperField

Type: proto.onnx.TensorShapeProto?

getWrapperField

Type: proto.onnx.TypeProto?

getWrapperField

Type: proto.onnx.TypeProto?

getWrapperField

Type: proto.onnx.TypeProto?

getWrapperField

Type: proto.onnx.TensorShapeProto?

getWrapperField

Type: proto.onnx.TypeProto.Tensor?

getWrapperField

Type: proto.onnx.TypeProto.Sequence?

getWrapperField

Type: proto.onnx.TypeProto.Map?

getWrapperField

Type: proto.onnx.TypeProto.Optional?

getWrapperField

Type: proto.onnx.TypeProto.SparseTensor?

getRepeatedFloatingPointField

lib/model/nns/onnx/onnx_pb.js
getRepeatedFloatingPointField

Type: !Array<number>

getRepeatedFloatingPointField

lib/model/nns/onnx/onnx_pb.js
getRepeatedFloatingPointField

Type: !Array<number>

getRepeatedFloatingPointField

lib/model/nns/onnx/onnx_pb.js
getRepeatedFloatingPointField

Type: !Array<number>

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !(Array<!Uint8Array> | Array<string>)

getRepeatedField

Type: !Array<string>

getRepeatedField

Type: !Array<string>

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !(Array<!Uint8Array> | Array<string>)

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !Array<number>

getRepeatedField

Type: !Array<string>

getRepeatedField

Type: !Array<string>

getRepeatedField

Type: !Array<string>

bytesListAsB64

Type: !Array<string>

bytesListAsB64

Type: !Array<string>

bytesListAsU8

Type: !Array<!Uint8Array>

bytesListAsU8

Type: !Array<!Uint8Array>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TensorProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.GraphProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.SparseTensorProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TypeProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.AttributeProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.OperatorSetIdProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TrainingInfoProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.FunctionProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.NodeProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TensorProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.SparseTensorProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.ValueInfoProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.ValueInfoProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.ValueInfoProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TensorAnnotation>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.TensorShapeProto.Dimension>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.AttributeProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.NodeProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.OperatorSetIdProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.ValueInfoProto>

getRepeatedWrapperField

lib/model/nns/onnx/onnx_pb.js
getRepeatedWrapperField

Type: !Array<!proto.onnx.StringStringEntryProto>

readInt32

Type: number

readInt32

Type: number

readInt32

Type: number

readInt32

Type: number

computeOneofCase

Type: proto.onnx.TensorShapeProto.Dimension.ValueCase

computeOneofCase

Type: proto.onnx.TypeProto.ValueCase

Handle input node

HandleONNXInputNode
Static Members
import(model, node)

Handle output node

HandleONNXOutputNode
Static Members
import(model, node)

Handle abs operator

HandleONNXAbsOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#abs
Static Members
import(model, node)

Handle acos operator

HandleONNXAcosOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#acos
Static Members
import(model, node)

Handle acosh operator

HandleONNXAcoshOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#acosh
Static Members
import(model, node)

Handle add operator

HandleONNXAddOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#add
Static Members
import(model, node)

Return Tensor value.

loadTensor
Parameters
tensor (onnx.TensorProto) TensorProto
Related
https://github.com/onnx/onnx/blob/main/onnx/onnx.proto#L479

Return attribute value.

loadAttribute
Parameters
attribute (onnx.AttributeProto) AttributeProto
Returns
any: Attribute value
Related
https://github.com/onnx/onnx/blob/main/onnx/onnx.proto#L108

Create const layers from initializer list.

requireTensor
Parameters
model (onnx.ModelProto) Model object
names (Array<string>) Input name
Returns
Array<object>: Require layer objects

Handle and operator

HandleONNXAndOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#and
Static Members
import(model, node)

Handle ArgMax operator

HandleONNXArgMaxOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ArgMax
Static Members
import(model, node)

Handle ArgMin operator

HandleONNXArgMinOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ArgMin
Static Members
import(model, node)

Handle asin operator

HandleONNXAsinOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#asin
Static Members
import(model, node)

Handle asinh operator

HandleONNXAsinhOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#asinh
Static Members
import(model, node)

Handle atan operator

HandleONNXAtanOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#atan
Static Members
import(model, node)

Handle atanh operator

HandleONNXAtanhOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#atanh
Static Members
import(model, node)

HandleONNXAveragePoolOperator

lib/model/nns/onnx/operators/averagepool.js

Handle averagepool operator

HandleONNXAveragePoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#AveragePool
Static Members
import(model, node)

HandleONNXBatchNormalizationOperator

lib/model/nns/onnx/operators/batchnormalization.js

Handle batch-normalization operator

HandleONNXBatchNormalizationOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BatchNormalization
Static Members
import(model, node)

Handle BitShift operator

HandleONNXBitShiftOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BitShift
Static Members
import(model, node)

HandleONNXBitwiseAndOperator

lib/model/nns/onnx/operators/bitwiseand.js

Handle BitwiseAnd operator

HandleONNXBitwiseAndOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BitwiseAnd
Static Members
import(model, node)

HandleONNXBitwiseNotOperator

lib/model/nns/onnx/operators/bitwisenot.js

Handle BitwiseNot operator

HandleONNXBitwiseNotOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BitwiseNot
Static Members
import(model, node)

Handle BitwiseOr operator

HandleONNXBitwiseOrOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BitwiseOr
Static Members
import(model, node)

HandleONNXBitwiseXorOperator

lib/model/nns/onnx/operators/bitwisexor.js

Handle BitwiseXor operator

HandleONNXBitwiseXorOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#BitwiseXor
Static Members
import(model, node)

Handle ceil operator

HandleONNXCeilOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Ceil
Static Members
import(model, node)

Handle Celu operator

HandleONNXCeluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Celu
Static Members
import(model, node)

Handle clip operator

HandleONNXClipOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#clip
Static Members
import(model, node)

Handle concat operator

HandleONNXConcatOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#concat
Static Members
import(model, node)

Handle constant operator

HandleONNXConstantOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#constant
Static Members
import(model, node)

Handle conv operator

HandleONNXConvOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#conv
Static Members
import(model, node)

Handle cos operator

HandleONNXCosOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#cos
Static Members
import(model, node)

Handle cosh operator

HandleONNXCoshOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#cosh
Static Members
import(model, node)

Handle div operator

HandleONNXDivOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#div
Static Members
import(model, node)

Handle dropout operator

HandleONNXDropoutOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Dropout
Static Members
import(model, node)

Handle elu operator

HandleONNXEluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Elu
Static Members
import(model, node)

Handle Equal operator

HandleONNXEqualOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Equal
Static Members
import(model, node)

Handle erf operator

HandleONNXErfOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Erf
Static Members
import(model, node)

Handle exp operator

HandleONNXExpOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#exp
Static Members
import(model, node)

Handle flatten operator

HandleONNXFlattenOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Flatten
Static Members
import(model, node)

Handle floor operator

HandleONNXFloorOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Floor
Static Members
import(model, node)

Handle gemm operator

HandleONNXGemmOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#gemm
Static Members
import(model, node)

HandleONNXGlobalAveragePoolOperator

lib/model/nns/onnx/operators/globalaveragepool.js

Handle GlobalAveragePool operator

HandleONNXGlobalAveragePoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#GlobalAveragePool
Static Members
import(model, node)

HandleONNXGlobalLpPoolOperator

lib/model/nns/onnx/operators/globallppool.js

Handle GlobalLpPool operator

HandleONNXGlobalLpPoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#GlobalLpPool
Static Members
import(model, node)

HandleONNXGlobalMaxPoolOperator

lib/model/nns/onnx/operators/globalmaxpool.js

Handle GlobalMaxPool operator

HandleONNXGlobalMaxPoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#GlobalMaxPool
Static Members
import(model, node)

Handle greater operator

HandleONNXGreaterOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#greater
Static Members
import(model, node)

HandleONNXGreaterOrEqualOperator

lib/model/nns/onnx/operators/greaterorequal.js

Handle GreaterOrEqual operator

HandleONNXGreaterOrEqualOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#GreaterOrEqual
Static Members
import(model, node)

HandleONNXHardSigmoidOperator

lib/model/nns/onnx/operators/hardsigmoid.js

Handle HardSigmoid operator

HandleONNXHardSigmoidOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#HardSigmoid
Static Members
import(model, node)

Handle HardSwish operator

HandleONNXHardSwishOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#HardSwish
Static Members
import(model, node)

Handle identity operator

HandleONNXIdentityOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Identity
Static Members
import(model, node)

Handle IsInf operator

HandleONNXIsInfOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#IsInf
Static Members
import(model, node)

Handle IsNaN operator

HandleONNXIsNaNOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#IsNaN
Static Members
import(model, node)

HandleONNXLayerNormalizationOperator

lib/model/nns/onnx/operators/layernormalization.js

Handle layer-normalization operator

HandleONNXLayerNormalizationOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LayerNormalization
Static Members
import(model, node)

Handle leakyrelu operator

HandleONNXLeakyReluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LeakyRelu
Static Members
import(model, node)

Handle less operator

HandleONNXLessOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#less
Static Members
import(model, node)

HandleONNXLessOrEqualOperator

lib/model/nns/onnx/operators/lessorequal.js

Handle LessOrEqual operator

HandleONNXLessOrEqualOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LessOrEqual
Static Members
import(model, node)

Handle log operator

HandleONNXLogOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#log
Static Members
import(model, node)

HandleONNXLogSoftmaxOperator

lib/model/nns/onnx/operators/logsoftmax.js

Handle logsoftmax operator

HandleONNXLogSoftmaxOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LogSoftmax
Static Members
import(model, node)

Handle lppool operator

HandleONNXLpPoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#lppool
Static Members
import(model, node)

Handle lrn operator

HandleONNXLRNOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#LRN
Static Members
import(model, node)

Handle matmul operator

HandleONNXMatmulOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#matmul
Static Members
import(model, node)

Handle max operator

HandleONNXMaxOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#max
Static Members
import(model, node)

Handle maxpool operator

HandleONNXMaxPoolOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#maxpool
Static Members
import(model, node)

Handle mean operator

HandleONNXMeanOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Mean
Static Members
import(model, node)

Handle min operator

HandleONNXMinOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#min
Static Members
import(model, node)

Handle mish operator

HandleONNXMishOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Mish
Static Members
import(model, node)

Handle Modulo operator

HandleONNXModOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Mod
Static Members
import(model, node)

Handle mul operator

HandleONNXMulOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#mul
Static Members
import(model, node)

Handle neg operator

HandleONNXNegOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#neg
Static Members
import(model, node)

Handle Not operator

HandleONNXNotOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#not
Static Members
import(model, node)

Handle or operator

HandleONNXOrOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#or
Static Members
import(model, node)

Handle pow operator

HandleONNXPowOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Pow
Static Members
import(model, node)

Handle prelu operator

HandleONNXPReluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#PRelu
Static Members
import(model, node)

HandleONNXReciprocalOperator

lib/model/nns/onnx/operators/reciprocal.js

Handle reciprocal operator

HandleONNXReciprocalOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Reciprocal
Static Members
import(model, node)

Handle reduce L1 operator

HandleONNXReduceL1Operator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceL1
Static Members
import(model, node)

Handle reduce L2 operator

HandleONNXReduceL2Operator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceL2
Static Members
import(model, node)

HandleONNXReduceLogSumOperator

lib/model/nns/onnx/operators/reducelogsum.js

Handle reduce log sum operator

HandleONNXReduceLogSumOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceLogSum
Static Members
import(model, node)

HandleONNXReduceLogSumExpOperator

lib/model/nns/onnx/operators/reducelogsumexp.js

Handle reduce log sum exp operator

HandleONNXReduceLogSumExpOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceLogSumExp
Static Members
import(model, node)

Handle reduce max operator

HandleONNXReduceMaxOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceMax
Static Members
import(model, node)

HandleONNXReduceMeanOperator

lib/model/nns/onnx/operators/reducemean.js

Handle reduce mean operator

HandleONNXReduceMeanOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceMean
Static Members
import(model, node)

Handle reduce min operator

HandleONNXReduceMinOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceMin
Static Members
import(model, node)

HandleONNXReduceProdOperator

lib/model/nns/onnx/operators/reduceprod.js

Handle reduce prod operator

HandleONNXReduceProdOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceProd
Static Members
import(model, node)

Handle reduce sum operator

HandleONNXReduceSumOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceSum
Static Members
import(model, node)

HandleONNXReduceSumSquareOperator

lib/model/nns/onnx/operators/reducesumsquare.js

Handle reduce sum square operator

HandleONNXReduceSumSquareOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ReduceSumSquare
Static Members
import(model, node)

Handle relu operator

HandleONNXReluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#relu
Static Members
import(model, node)

Handle reshape operator

HandleONNXReshapeOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#reshape
Static Members
import(model, node)

Handle round operator

HandleONNXRoundOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Round
Static Members
import(model, node)

Handle Selu operator

HandleONNXSeluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Selu
Static Members
import(model, node)

Handle shrink operator

HandleONNXShrinkOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Shrink
Static Members
import(model, node)

Handle sigmoid operator

HandleONNXSigmoidOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#sigmoid
Static Members
import(model, node)

Handle sign operator

HandleONNXSignOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Sign
Static Members
import(model, node)

Handle sin operator

HandleONNXSinOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#sin
Static Members
import(model, node)

Handle sinh operator

HandleONNXSinhOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#sinh
Static Members
import(model, node)

Handle softmax operator

HandleONNXSoftmaxOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Softmax
Static Members
import(model, node)

Handle softplus operator

HandleONNXSoftplusOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Softplus
Static Members
import(model, node)

Handle softsign operator

HandleONNXSoftsignOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Softsign
Static Members
import(model, node)

Handle sqrt operator

HandleONNXSqrtOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#sqrt
Static Members
import(model, node)

Handle sub operator

HandleONNXSubOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#sub
Static Members
import(model, node)

Handle sum operator

HandleONNXSumOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#Sum
Static Members
import(model, node)

Handle tan operator

HandleONNXTanOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#tan
Static Members
import(model, node)

Handle tanh operator

HandleONNXTanhOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#tanh
Static Members
import(model, node)

HandleONNXThresholdedReluOperator

lib/model/nns/onnx/operators/thresholdedrelu.js

Handle thresholded Relu operator

HandleONNXThresholdedReluOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ThresholdedReLU
Static Members
import(model, node)

Handle transpose operator

HandleONNXTransposeOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#transpose
Static Members
import(model, node)

Handle xor operator

HandleONNXXorOperator
Related
https://github.com/onnx/onnx/blob/main/docs/Operators.md#xor
Static Members
import(model, node)

NiblackThresholding

lib/model/niblack.js

Niblack thresholding

new NiblackThresholding(n: number?, k: number?)
Parameters
n (number? = 3) Size of local range
k (number? = 0.1) Tuning parameter
Instance Members
predict(x)

Flow-based generative model non-linear independent component estimation

new NICE(layer_number: number, optimizer: string)
Parameters
layer_number (number) Number of layers
optimizer (string) Optimizer of the network
Instance Members
epoch
fit(x, iteration, rate, batch_size)
predict(x)
generate(z)

Reverse layer

new ReverseLayer($0: Object, config: object)

Extends Layer

Parameters
$0 (Object)
NameDescription
$0.axis any (default 1)
$0.rest ...any
config (object) config

Non-local means filter

new NLMeans(n: number, h: number)
Parameters
n (number) Manhattan distance of the pixel to the nearest neighbor
h (number) Degree of filtering
Instance Members
predict(x)

Non-negative matrix factorization

new NMF()
Instance Members
init(x, rd = 0)
fit()
predict()

Natural Neighborhood Based Classification Algorithm

new NNBCA(metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
fit(datas, targets)
predict(datas)

Natural Outlier Factor

new NOF(k: number?)
Parameters
k (number? = 0) Number of neighborhoods
Instance Members
predict(datas)

Normal Herd

new NormalHERD(type: ("full" | "exact" | "project" | "drop")?, c: number?)
Parameters
type (("full" | "exact" | "project" | "drop")? = 'exact') Method name
c (number? = 0.1) Tradeoff value between passiveness and aggressiveness
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Online Aggregate Prank-Bayes Point Machine

new OAPBPM(n: number, tau: number, rate: number?)
Parameters
n (number) Number of PRank models
tau (number) Probability to learn
rate (number? = 0.1) Learning rate
Instance Members
fit(x, y)
predict(x)

One-class support vector machine

new OCSVM(nu: number, kernel: any)
Parameters
nu (number) Nu
kernel (any)
Instance Members
init(x)
fit()
predict(x)

Outlier Detection using Indegree Number

new ODIN(k: number?, t: number?)
Parameters
k (number? = 5) Number of neighborhoods
t (number? = 0) Indegree threshold
Instance Members
predict(data)

OnlineGradientDescent

lib/model/ogd.js

Online gradient descent

new OnlineGradientDescent(c: number?, loss: "zero_one"?)
Parameters
c (number? = 1) Tuning parameter
loss ("zero_one"? = 'zero_one') Loss type name
Instance Members
update(x, y)
fit(x, y)
predict(data)

Ordering points to identify the clustering structure

new OPTICS(threshold: number, eps: number?, minPts: number?, metric: ("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)?)
Parameters
threshold (number) Threshold
eps (number? = Infinity) Radius to determine neighborhood
minPts (number? = 5) Number of neighborhood with core distance
metric (("euclid" | "manhattan" | "chebyshev" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
fit(datas)
predict()

arbitrarily ORiented projected CLUSter generation

new ORCLUS(k: number, k0: number, l: number)
Parameters
k (number) Number of clusters
k0 (number) Number of begining seeds
l (number) Number of dimensions
Instance Members
fit(datas)
predict(datas)

OrderedLogisticRegression

lib/model/ordered_logistic.js

Ordered logistic regression

new OrderedLogisticRegression(rate: number?)
Parameters
rate (number? = 0.1) Learning rate
Instance Members
fit(x, y)
predict(x)

OrderedProbitRegression

lib/model/ordered_probit.js

Ordered probit regression

new OrderedProbitRegression(rate: number?)
Parameters
rate (number? = 0.001) Learning rate
Instance Members
fit(x, y)
predict(x)

OtsusThresholding

lib/model/otsu.js

Otus's thresholding

new OtsusThresholding()
Instance Members
predict(x)

Partitioning Around Medoids

new PAM(k: number)
Parameters
k (number) Number of clusters
Instance Members
init(datas)
fit()
predict()

Particle filter

new ParticleFilter()
Instance Members
fit(z)

Passing-Bablok method

new PassingBablok()
Instance Members
fit(x, y)
predict(x)

Passive Aggressive

new PA(v: (0 | 1 | 2)?)
Parameters
v ((0 | 1 | 2)? = 0) Version number
Instance Members
update(x, y)
fit(x, y)
predict(data)

Perceptron Algorithm with Uneven Margins

new PAUM(rate: number, tp: number, tm: number)
Parameters
rate (number) Learning rate
tp (number) Margin parameter for +1
tm (number) Margin parameter for -1
Instance Members
fit(x, y)
predict(data)

Principal component analysis

new PCA(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
fit(x)
predict(x)

Dual Principal component analysis

new DualPCA(rd: (number | null)?)
Parameters
rd ((number | null)? = null) Reduced dimension
Instance Members
fit(x)
predict(x)

Kernel Principal component analysis

new KernelPCA(kernel: any, rd: (number | null)?)
Parameters
kernel (any)
rd ((number | null)? = null) Reduced dimension
Instance Members
fit(x)
predict(x)

Principal component analysis for anomaly detection

new AnomalyPCA()

Extends PCA

Instance Members
fit(x)
predict(x)

PossibilisticCMeans

lib/model/pcm.js

Possibilistic c-means

new PossibilisticCMeans(m: number?)
Parameters
m (number? = 2) Fuzziness factor
Instance Members
init(datas)
add()
fit()
predict()

Principal component regression

new PCR()
Instance Members
fit(x, y)
predict(x)

Primal Estimated sub-GrAdientSOlver for SVM

new Pegasos(rate: number, k: number?)
Parameters
rate (number) Learning rate
k (number? = 1) Batch size
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

PercentileAnormaly

lib/model/percentile.js

Percentile anomaly detection

new PercentileAnormaly(percentile: number, distribution: ("data" | "normal")?)
Parameters
percentile (number) Percentile value
distribution (("data" | "normal")? = 'data') Distribution name
Instance Members
fit(data)
predict(x)

Perceptron

new Perceptron(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

AveragedPerceptron

lib/model/perceptron.js

Averaged perceptron

new AveragedPerceptron(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

MulticlassPerceptron

lib/model/perceptron.js

Multiclass perceptron

new MulticlassPerceptron(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

PhansalkarThresholding

lib/model/phansalkar.js

Phansalkar thresholding

new PhansalkarThresholding(n: number?, k: number?, r: number?, p: number?, q: number?)
Parameters
n (number? = 3) Size of local range
k (number? = 0.25) Tuning parameter
r (number? = 0.5) Tuning parameter
p (number? = 2) Tuning parameter
q (number? = 10) Tuning parameter
Instance Members
predict(x)

Partial least squares regression

new PLS(l: number)
Parameters
l (number) Limit on the number of latent factors
Instance Members
init(x, y)
fit()
predict(x)

Probabilistic latent semantic analysis

new PLSA(k: number?)
Parameters
k (number? = 2) Number of clusters
Instance Members
init(x)
fit()
predict()

PoissonRegression

lib/model/poisson.js

Poisson regression

new PoissonRegression(rate: number)
Parameters
rate (number) Learning rate
Instance Members
fit(x, y)
predict(x)

Policy gradient agent

new PGAgent(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
reset()
get_score()
get_action(state)
update(action, state, reward, done, learning_rate)

Polynomial histogram

new PolynomialHistogram(p: number?, h: number?)
Parameters
p (number? = 2) Order
h (number? = 0.1) Bin size
Instance Members
fit(x)
predict(x)

Polynomial interpolation

new PolynomialInterpolation()
Instance Members
fit(x, y)
predict(x)

ProjectionPursuit

lib/model/ppr.js

Projection pursuit regression

new ProjectionPursuit(r: number?)
Parameters
r (number? = 5) Number of functions
Instance Members
fit(x, y)
predict(x)

Perceptron ranking

new PRank(rate: number?)
Parameters
rate (number? = 0.1) Learning rate
Instance Members
fit(x, y)
predict(x)

Prewitt edge detection

new Prewitt(th: number)
Parameters
th (number) Threshold
Instance Members
predict(x)

Priestley–Chao kernel estimator

new PriestleyChao(h: number)
Parameters
h (number) Smoothing parameter for the kernel
Instance Members
fit(x, y)
predict(x)

Principal curves

new PrincipalCurve()
Instance Members
fit(x)
predict()

Probabilistic Principal component analysis

new ProbabilisticPCA(method: ("analysis" | "em" | "bayes")?, rd: number)
Parameters
method (("analysis" | "em" | "bayes")? = 'analysis') Method name
rd (number) Reduced dimension
Instance Members
fit(x)
predict(x)
ProbabilityModel

Type: object

Properties
fit (function (Array<Array<number>>): void) : Fit model
probability (function (Array<Array<number>>): Array<number>) : Returns predicted values

Probability based classifier

new ProbabilityBasedClassifier(model: any)
Parameters
model (any)
Instance Members
fit(x, y)
predict(x)

Probit

new Probit()
Instance Members
init(train_x, train_y)
fit()
predict(data)

MultinomialProbit

lib/model/probit.js

Multinomial probit

new MultinomialProbit()

Extends Probit

Instance Members
fit(x, y)
predict(data)

PROjected CLUStering algorithm

new PROCLUS(k: number, a: number, b: number, l: number, minDeviation: number?)
Parameters
k (number) Number of clusters
a (number) Number to multiply the number of clusters for sample size
b (number) Number to multiply the number of clusters for final set size
l (number) Average dimensions
minDeviation (number? = 0.1) Minimum deviation to check the medoid is bad
Instance Members
init(datas)
fit()
predict()
outliers()

Projectron

new Projectron(eta: number?, kernel: any)
Parameters
eta (number? = 0) Threshold
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

Projectron++

new Projectronpp(eta: number?, kernel: any)
Parameters
eta (number? = 0) Threshold
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

P-tile thresholding

new PTile(p: number?)
Parameters
p (number? = 0.5) Percentile value
Instance Members
predict(x)

Base class for Q-table

new QTableBase(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
tensor
states
actions
resolution
toArray()
best_action(state)

Q-learning agent

new QAgent(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
get_score()
get_action(state, greedy_rate)
update(action, state, next_state, reward)

Quadratic discriminant analysis

new QuadraticDiscriminant()
Instance Members
fit(x, y)
predict(data)

Quantile regression

new QuantileRegression(tau: number?)
Parameters
tau (number? = 0.5) Quantile value
Instance Members
fit(x, y, learningRate = 0.1)
predict(x)

Bsae class for radius neighbor models

new RadiusNeighborBase(r: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)
Parameters
r (number? = 1) Radius to determine neighborhood
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
_add(point, category?)

radius neighbor

new RadiusNeighbor(r: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends RadiusNeighborBase

Parameters
r (number? = 1) Radius to determine neighborhood
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict(datas)

RadiusNeighborRegression

lib/model/radius_neighbor.js

radius neighbor regression

new RadiusNeighborRegression(r: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends RadiusNeighborBase

Parameters
r (number? = 1) Radius to determine neighborhood
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict(datas)

SemiSupervisedRadiusNeighbor

lib/model/radius_neighbor.js

Semi-supervised radius neighbor

new SemiSupervisedRadiusNeighbor(k: number?, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?)

Extends RadiusNeighborBase

Parameters
k (number? = 5) Radius to determine neighborhood
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
Instance Members
add(point, category)
fit(datas, targets)
predict()

Ramer-Douglas-Peucker algorithm

new RamerDouglasPeucker(e: number?)
Parameters
e (number? = 0.1) Threshold of distance
Instance Members
fit(x, y)
predict(x)

Bsae class for random forest models

new RandomForest(tree_num: number, sampling_rate: number?, tree_class: (DecisionTreeClassifier | DecisionTreeRegression), tree_class_args: Array<any>?)
Parameters
tree_num (number) Number of trees
sampling_rate (number? = 0.8) Sampling rate
tree_class_args (Array<any>? = null) Arguments for constructor of tree class
Instance Members
depth
init(datas, targets)
fit()
predict_prob(datas)

RandomForestClassifier

lib/model/random_forest.js

Random forest classifier

new RandomForestClassifier(tree_num: number, sampling_rate: number?, method: ("ID3" | "CART")?)

Extends RandomForest

Parameters
tree_num (number) Number of trees
sampling_rate (number? = 0.8) Sampling rate
method (("ID3" | "CART")? = 'CART') Method name
Instance Members
predict(datas)

RandomForestRegressor

lib/model/random_forest.js

Random forest regressor

new RandomForestRegressor(tree_num: number, sampling_rate: number?)

Extends RandomForest

Parameters
tree_num (number) Number of trees
sampling_rate (number? = 0.8) Sampling rate
Instance Members
predict(datas)

Random projection

new RandomProjection(init: ("uniform" | "root3" | "normal")?, rd: (number | null)?)
Parameters
init (("uniform" | "root3" | "normal")? = 'uniform') Initialize method name
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x)

RankNet

new RankNet(layer_sizes: Array<number>, activations: (string | Array<string>)?, rate: number?)
Parameters
layer_sizes (Array<number>) Sizes of all layers
activations ((string | Array<string>)? = 'tanh') Activation names
rate (number? = 0.01) Learning rate
Instance Members
fit(x1, x2, comp)
predict(x)

RANSACSubModel

lib/model/ransac.js
RANSACSubModel

Type: object

Properties
fit (function (Array<Array<number>>, Array<any>): void) : Fit model
predict (function (Array<Array<number>>): Array<any>) : Returns predicted values
score (function (Array<any>, Array<any>): number?) : Returns a number how accurate the prediction is

Random sample consensus

new RANSAC(model: any, sample: (number | null)?)
Parameters
model (any)
sample ((number | null)? = null) Sampling rate
Instance Members
fit(x, y)
predict(x)

RadialBasisFunctionNetwork

lib/model/rbf.js

Radial basis function network

new RadialBasisFunctionNetwork(rbf: ("linear" | "gaussian" | "multiquadric" | "inverse quadratic" | "inverse multiquadric" | "thin plate" | "bump")?, e: number?, l: number?)
Parameters
rbf (("linear" | "gaussian" | "multiquadric" | "inverse quadratic" | "inverse multiquadric" | "thin plate" | "bump")? = 'linear') RBF name
e (number? = 1) Tuning parameter
l (number? = 0) Regularization parameter
Instance Members
fit(x, y)
predict(target)

Restricted Boltzmann machine

new RBM(hiddenSize: number, lr: number?)
Parameters
hiddenSize (number) Size of hidden layer
lr (number? = 0.01) Learning rate
Instance Members
fit(x)
energy(v, h)
predict(x)

Gaussian-Bernouili Restricted Boltzmann machine

new GBRBM(hiddenSize: number, lr: number?, fixSigma: boolean?)
Parameters
hiddenSize (number) Size of hidden layer
lr (number? = 0.01) Learning rate
fixSigma (boolean? = false) Do not learn sigma or not
Instance Members
fit(x)
energy(v, h)
predict(x)

Randomized Budget Perceptron

new RBP(b: number)
Parameters
b (number) Number of support vectors
Instance Members
fit(x, y)
predict(data)

Relative Density Factor

new RDF(r: number?)
Parameters
r (number? = 1.0) Radius
Instance Members
predict(datas)

Relative Density-based Outlier Score

new RDOS(k: number, h: number, kernel: ("gaussian" | {name: "gaussian"} | function (Array<number>): number)?)
Parameters
k (number) Number of neighborhoods
h (number) Kernel width
kernel (("gaussian" | {name: "gaussian"} | function (Array<number>): number)? = 'gaussian') Kernel name
Instance Members
predict(datas)

Ridge regressioin

new Ridge(lambda: number?)
Parameters
lambda (number? = 0.1) Regularization strength
Instance Members
fit(x, y)
predict(x)
importance()

MulticlassRidge

lib/model/ridge.js

Multiclass ridge regressioin

new MulticlassRidge(lambda: number?)
Parameters
lambda (number? = 0.1) Regularization strength
Instance Members
categories
fit(x, y)
predict(x)
importance()

Kernel ridge regression

new KernelRidge(lambda: number?, kernel: any)
Parameters
lambda (number? = 0.1) Regularization strength
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(x)
importance()

Robust Kernel-based Outlier Factor

new RKOF(k: number, h: number, alpha: number, kernel: any)
Parameters
k (number) Number of neighborhoods
h (number) Smoothing parameter
alpha (number) Sensitivity parameter
kernel (any = 'gaussian')
Instance Members
predict(datas)

RecursiveLeastSquares

lib/model/rls.js

Recursive least squares

new RecursiveLeastSquares()
Instance Members
update(x, y)
fit(x, y)
predict(data)

RepeatedMedianRegression

lib/model/rmr.js

Repeated median regression

new RepeatedMedianRegression()
Instance Members
fit(x, y)
predict(x)

Recurrent neuralnetwork

new RNN(method: ("rnn" | "lstm" | "gru")?, window: number?, unit: number?, out_size: number?, optimizer: string?)
Parameters
method (("rnn" | "lstm" | "gru")? = 'lstm') Method name
window (number? = 10) Window size
unit (number? = 10) Size of recurrent unit
out_size (number? = 1) Output size
optimizer (string? = 'adam') Optimizer of the network
Instance Members
method
epoch
fit(train_x, train_y, iteration, rate, batch)
predict(data, k)

Roberts cross

new RobertsCross(th: number)
Parameters
th (number) Threshold
Instance Members
predict(x)

Robust scaler

new RobustScaler()
Instance Members
fit(x)
predict(x)
inverse(z)
ROCKNode

Type: object

Properties
point (Array<number>?) : Data point of leaf node
index (number?) : Data index of leaf node
g (number) : Number of leaf nodes
distance (number?) : Distance between children nodes
children (Array<ROCKNode>?) : Children nodes
leafs (Array<ROCKNode>) : Leaf nodes

RObust Clustering using linKs

new ROCK(th: number, k: number)
Parameters
th (number) Threshold
k (number) Number of clusters
Instance Members
fit(data)
getClusters(number)
predict()

Relaxed Online Maximum Margin Algorithm

new ROMMA()
Instance Members
update(x, y)
fit(x, y)
predict(data)

AggressiveROMMA

lib/model/romma.js

Aggressive Relaxed Online Maximum Margin Algorithm

new AggressiveROMMA()

Extends ROMMA

Relevance vector machine

new RVM()
Instance Members
fit(x, y)
predict(x)

Semi-Supervised Support Vector Machine

new S3VM(kernel: any)
Parameters
kernel (any)
Instance Members
init(x, y)
fit()
predict(data)

Sammon mapping

new Sammon(x: Array<Array<number>>, rd: number)
Parameters
x (Array<Array<number>>) Sample data
rd (number) Reduced dimension
Instance Members
fit()
predict()

SARSA agent

new SARSAAgent(env: RLEnvironmentBase, resolution: number?)
Parameters
env (RLEnvironmentBase) Environment
resolution (number? = 20) Resolution
Instance Members
reset()
get_score()
get_action(state, greedy_rate)
update(action, state, next_state, reward)

SauvolaThresholding

lib/model/sauvola.js

sauvola thresholding

new SauvolaThresholding(n: number?, k: number?, r: number?)
Parameters
n (number? = 3) Size of local range
k (number? = 0.1) Tuning parameter
r (number? = 1) Tuning parameter
Instance Members
predict(x)

SavitzkyGolayFilter

lib/model/savitzky_golay.js

Savitzky-Golay filter

new SavitzkyGolayFilter(k: number)
Parameters
k (number) Number of coefficients
Instance Members
predict(x)

Sequentially Discounting Autoregressive model

new SDAR(p: number?, r: number?)
Deprecated: Does not work properly
Parameters
p (number? = 1) Order
r (number? = 0.8) Forgetting factor
Instance Members
probability(data)
predict(data, k)

SegmentedRegression

lib/model/segmented.js

Segmented regression

new SegmentedRegression(seg: number?)
Parameters
seg (number? = 3) Number of segments
Instance Members
fit(x, y)
predict(x)

Selective Naive bayes

new SelectiveNaiveBayes(distribution: "gaussian"?)
Parameters
distribution ("gaussian"? = 'gaussian') Distribution name
Instance Members
fit(datas, labels)
predict(data)

Selective sampling Perceptron

new SelectiveSamplingPerceptron(b: number, rate: number)
Parameters
b (number) Smooth parameter
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

SelectiveSamplingAdaptivePerceptron

lib/model/selective_sampling_perceptron.js

Selective sampling Perceptron with adaptive parameter

new SelectiveSamplingAdaptivePerceptron(beta: number, rate: number)
Parameters
beta (number) Smooth parameter
rate (number) Learning rate
Instance Members
fit(x, y)
predict(data)

Selective sampling second-order Perceptron

new SelectiveSamplingSOP(b: number)
Parameters
b (number) Smooth parameter
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

Selective sampling Winnow

new SelectiveSamplingWinnow(b: number, alpha: boolean?)
Parameters
b (number) Smooth parameter
alpha (boolean? = 2) Learning rate
Instance Members
fit(x, y)
predict(data)

Self-training

new SelfTraining(model: object, threshold: number)
Parameters
model (object) View
threshold (number) Threshold
Instance Members
init(x, y)
fit()
predict()

Semi-supervised naive bayes

new SemiSupervisedNaiveBayes(lambda: number?)
Parameters
lambda (number? = 1) Weight applied to the contribution of the unlabeled data
Instance Members
init(datas, labels)
probability(datas)
logLikelihood()
predict(datas)

SezanThresholding

lib/model/sezan.js

Sezan's thresholding

new SezanThresholding(gamma: number?, sigma: number?)
Parameters
gamma (number? = 0.5) Tradeoff value between black and white
sigma (number? = 5) Sigma of normal distribution
Instance Members
predict(x)

Shifting Perceptron Algorithm

new ShiftingPerceptron(lambda: number)
Parameters
lambda (number) Rate of weight decay
Instance Members
fit(x, y)
predict(data)

Implicit online Learning with Kernels

new ILK(eta: number?, lambda: number?, c: number?, kernel: any, loss: ("square" | "hinge" | "logistic")?)
Parameters
eta (number? = 1) Learning rate
lambda (number? = 1) Regularization constant
c (number? = 1) Penalty imposed on point prediction violations.
kernel (any = 'gaussian')
loss (("square" | "hinge" | "logistic")? = 'hinge') Loss type name
Instance Members
update(x, y)
fit(x, y)
predict(data)

Sparse Implicit online Learning with Kernels

new SILK(eta: number?, lambda: number?, c: number?, w: number?, kernel: any, loss: ("square" | "hinge" | "graph" | "logistic")?)

Extends ILK

Parameters
eta (number? = 1) Learning rate
lambda (number? = 1) Regularization constant
c (number? = 1) Penalty imposed on point prediction violations.
w (number? = 10) Buffer size
kernel (any = 'gaussian')
loss (("square" | "hinge" | "graph" | "logistic")? = 'hinge') Loss type name
Instance Members
update(x, y)

Sinc interpolation

new SincInterpolation()
Instance Members
fit(values)
predict(index)

SlicedInverseRegression

lib/model/sir.js

Sliced inverse regression

new SlicedInverseRegression(s: number, rd: (number | null)?)
Parameters
s (number) Number of slices
rd ((number | null)? = null) Reduced dimension
Instance Members
predict(x, y)

Spherical linear interpolation

new Slerp(o: number?)
Parameters
o (number? = 1) Angle subtended by the arc
Instance Members
fit(x, y)
predict(target)

slice sampling

new SliceSampling(targetFunc: function (Array<number>): number, d: number, w: number?)
Parameters
targetFunc (function (Array<number>): number) Target distribution
d (number) Output size
w (number? = 1.0) Check width
Instance Members
sample(n)

SMARegression

lib/model/sma.js

Standardizes Major Axis regression

new SMARegression()
Instance Members
fit(x, y)
predict(x)

SmirnovGrubbs test

new SmirnovGrubbs(alpha: number)
Parameters
alpha (number) Significance level
Instance Members
predict(data)

SmoothstepInterpolation

lib/model/smoothstep.js

Smoothstep interpolation

new SmoothstepInterpolation(n: number?)
Parameters
n (number? = 1) Order
Instance Members
fit(x, y)
predict(target)

Snakes (active contour model)

new Snakes(alpha: number, beta: number, gamma: number, k: number?)
Parameters
alpha (number) Penalty for length
beta (number) Penalty for curvature
gamma (number) Penalty for conformity with image
k (number? = 100) Number of vertices
Instance Members
init(x)
fit()
predict()

Sobel edge detection

new Sobel(th: number)
Parameters
th (number) Threshold
Instance Members
predict(x)

Soft k-means

new SoftKMeans(beta: number?)
Parameters
beta (number? = 1) Tuning parameter
Instance Members
init(datas)
add()
fit()
predict()

Self-Organizing Map

new SOM(input_size: number, output_size: number, resolution: number?)
Parameters
input_size (number) Input size
output_size (number) Output size
resolution (number? = 20) Resolution of output
Instance Members
fit(data)
predict(x)

SecondOrderPerceptron

lib/model/sop.js

Second order perceptron

new SecondOrderPerceptron(a: number?)
Parameters
a (number? = 1) Tuning parameter
Instance Members
init(train_x, train_y)
update(x, y)
fit()
predict(data)

SpectralClustering

lib/model/spectral.js

Spectral clustering

new SpectralClustering(affinity: ("rbf" | "knn")?, param: object?)
Parameters
affinity (("rbf" | "knn")? = 'rbf') Affinity type name
param (object? = {}) Config
Instance Members
size
epoch
init(datas)
add()
clear()
predict()
fit()

SmoothingSpline

lib/model/spline.js

Spline smoothing

new SmoothingSpline(l: number)
Parameters
l (number) Smoothing parameter
Instance Members
fit(x, y)
predict(data)

Spline interpolation

new SplineInterpolation()
Instance Members
fit(x, y)
predict(target)

Split and merge segmentation

new SplitAndMerge(method: ("variance" | "uniformity")?, threshold: number?)
Parameters
method (("variance" | "uniformity")? = 'variance') Method name
threshold (number? = 0.1) Threshold
Instance Members
predict(x)

Squared-loss Mutual information change point detection

new SquaredLossMICPD(model: object, w: number, take: number?, lag: number?)
Parameters
model (object) Density ratio estimation model
w (number) Window size
take (number?) Take number
lag (number?) Lag
Instance Members
predict(datas)

Singular-spectrum transformation

new SST(w: number, take: number?, lag: number?)
Parameters
w (number) Window size
take (number?) Take number
lag (number?) Lag
Instance Members
predict(datas)

Standardization

new Standardization(ddof: number?)
Parameters
ddof (number? = 0) Delta Degrees of Freedom
Instance Members
fit(x)
predict(x)
inverse(z)

Statistical Region Merging

new StatisticalRegionMerging(t: number)
Parameters
t (number) Threshold
Instance Members
predict(x)

STatistical INformation Grid-based method

new STING()
Deprecated: Not implemented
Instance Members
fit(datas)
predict(datas)

Stoptron

new Stoptron(n: number?, kernel: any)
Parameters
n (number? = 10) Cachs size
kernel (any = 'gaussian')
Instance Members
fit(x, y)
predict(data)

Support vector clustering

new SVC(kernel: any)
Parameters
kernel (any)
Instance Members
size
init(x)
fit()
predict()

Support vector machine

new SVM(kernel: any)
Parameters
kernel (any)
Instance Members
init(train_x, train_y)
fit()
predict(data)

Support vector regression

new SVR(kernel: any)
Parameters
kernel (any)
Instance Members
init(x, y)
fit()
predict(x)

TheilSenRegression

lib/model/theil_sen.js

Theil-Sen regression

new TheilSenRegression()
Instance Members
fit(x, y)
predict(x)

Thompson test

new Thompson(alpha: number)
Parameters
alpha (number) Significance level
Instance Members
predict(data)

Tietjen-Moore Test

new TietjenMoore(k: number, threshold: number)
Parameters
k (number) Number of outliers
threshold (number) Threshold
Instance Members
predict(data)

Tighter Budget Perceptron

new TighterPerceptron(beta: number?, p: number?, update: ("perceptron" | "mira" | "nobias")?)
Parameters
beta (number? = 0) Margine
p (number? = 0) Cachs size
update (("perceptron" | "mira" | "nobias")? = 'perceptron') Update rule
Instance Members
fit(x, y)
predict(data)

Tightest Perceptron

new TightestPerceptron(b: number?, kernel: any, accuracyLoss: ("zero_one" | "hinge")?)
Parameters
b (number? = 10) Budget size
kernel (any = 'gaussian')
accuracyLoss (("zero_one" | "hinge")? = 'hinge') Accuracy loss type name
Instance Members
fit(x, y)
predict(data)

Trigonometric interpolation

new TrigonometricInterpolation()
Instance Members
fit(x, y)
predict(target)

Stochastic Neighbor Embedding

new SNE(datas: Array<Array<number>>, rd: number?, perplexity: number?)
Parameters
datas (Array<Array<number>>) Training data
rd (number? = 1) Reduced dimension
perplexity (number? = 30) Perplexity
Instance Members
fit()
predict()

T-distributed Stochastic Neighbor Embedding

new tSNE(datas: Array<Array<number>>, rd: number?, perplexity: number?)
Parameters
datas (Array<Array<number>>) Training data
rd (number? = 1) Reduced dimension
perplexity (number? = 30) Perplexity
Instance Members
fit()
predict()

Tukey regression

new TukeyRegression(e: number)
Parameters
e (number) Error tolerance
Instance Members
fit(x, y)
predict(x)

Tukey's fences

new TukeysFences(k: number)
Parameters
k (number) Tuning parameter
Instance Members
predict(data)

Relative unconstrained Least-Squares Importance Fitting

new RuLSIF(sigma: Array<number>, lambda: Array<number>, alpha: number, kernelNum: number)
Parameters
sigma (Array<number>) Sigmas of normal distribution
lambda (Array<number>) Regularization parameters
alpha (number) Relative parameter
kernelNum (number) Number of kernels
Instance Members
fit(x1, x2)
predict(x)

unconstrained Least-Squares Importance Fitting

new uLSIF(sigma: Array<number>, lambda: Array<number>, kernelNum: number)

Extends RuLSIF

Parameters
sigma (Array<number>) Sigma of normal distribution
lambda (Array<number>) Regularization parameters
kernelNum (number) Number of kernels

Uniform Manifold Approximation and Projection

new UMAP(datas: Array<Array<number>>, rd: number, n: number?, min_dist: number?)
Parameters
datas (Array<Array<number>>) Training data
rd (number) Reduced dimension
n (number? = 10) Number of neighborhoods
min_dist (number? = 0.1) Minimum distance
Instance Members
fit()
predict()

Universal-set Naive bayes

new UniversalSetNaiveBayes(distribution: "gaussian"?)
Parameters
distribution ("gaussian"? = 'gaussian') Distribution name
Instance Members
fit(datas, labels)
predict(data)

Variational Autoencoder

new VAE(in_size: number, noise_dim: number, enc_layers: Array<LayerObject>, dec_layers: Array<LayerObject>, optimizer: string, class_size: (number | null), type: ("" | "conditional"))
Parameters
in_size (number) Input size
noise_dim (number) Number of noise dimension
enc_layers (Array<LayerObject>) Layers of encoder
dec_layers (Array<LayerObject>) Layers of decoder
optimizer (string) Optimizer of the network
class_size ((number | null)) Class size for conditional type
type (("" | "conditional")) Type name
Instance Members
epoch
fit(x, y, iteration, rate, batch)
predict(x, y)
reduce(x, y)

Vector Autoregressive model

new VAR(p: number)
Parameters
p (number) Order
Instance Members
fit(data)
predict(data, k)

Variational Gaussian Mixture Model

new VBGMM(a: number, b: number, k: number)
Parameters
a (number) Tuning parameter
b (number) Tuning parameter
k (number) Initial number of clusters
Instance Members
means
covs
effectivity
init(datas)
fit()
probability(data)
predict(data)

Voted-perceptron

new VotedPerceptron(rate: number?)
Parameters
rate (number? = 1) Learning rate
Instance Members
fit(x, y)
predict(data)

Weighted k-means model

new WeightedKMeans(beta: number)
Parameters
beta (number) Tuning parameter
Instance Members
centroids
size
add(datas)
clear()
predict(datas)
fit(datas)

Weighted K-Nearest Neighbor

new WeightedKNN(k: number, metric: ("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)?, weight: ("gaussian" | "rectangular" | "triangular" | "epanechnikov" | "quartic" | "triweight" | "cosine" | "inversion")?)
Parameters
k (number) Number of neighbors
metric (("euclid" | "manhattan" | "chebyshev" | "minkowski" | function (Array<number>, Array<number>): number)? = 'euclid') Metric name
weight (("gaussian" | "rectangular" | "triangular" | "epanechnikov" | "quartic" | "triweight" | "cosine" | "inversion")? = 'gaussian') Weighting scheme name
Instance Members
fit(x, y)
predict(data)

Weighted least squares

new WeightedLeastSquares()
Instance Members
fit(x, y, w)
predict(x)

Winnow

new Winnow(alpha: boolean?, threshold: number?, version: (1 | 2)?)
Parameters
alpha (boolean? = 2) Learning rate
threshold (number? = null) Threshold
version ((1 | 2)? = 1) Version of model
Instance Members
fit(x, y)
predict(data)

Word2Vec

new Word2Vec(method: ("CBOW" | "skip-gram"), n: number, wordsOrNumber: (number | Array<string>), reduce_size: number, optimizer: string)
Parameters
method (("CBOW" | "skip-gram")) Method name
n (number) Number of how many adjacent words to learn
wordsOrNumber ((number | Array<string>)) Initial words or number of words
reduce_size (number) Reduced dimension
optimizer (string) Optimizer of the network
Instance Members
epoch
fit(words, iteration, rate, batch)
predict(x)
reduce(x)

eXtreme Gradient Boosting regression

new XGBoost(maxdepth: number?, srate: number?, lambda: number?, lr: number?)
Parameters
maxdepth (number? = 1) Maximum depth of tree
srate (number? = 1.0) Sampling rate
lambda (number? = 0.1) Regularization parameter
lr (number? = 0.5) Learning rate
Instance Members
size
init(x, y)
fit()
predict(x)

XGBoostClassifier

lib/model/xgboost.js

eXtreme Gradient Boosting classifier

new XGBoostClassifier(maxdepth: number?, srate: number?, lambda: number?, lr: number?)

Extends XGBoost

Parameters
maxdepth (number? = 1) Maximum depth of tree
srate (number? = 1.0) Sampling rate
lambda (number? = 0.1) Regularization parameter
lr (number? = 0) Learning rate
Instance Members
init(x, y)
predict(x)

x-means

new XMeans()
Instance Members
centroids
size
clear()
fit(datas, iterations)
predict(datas)

Yeo-Johnson power transformation

new YeoJohnson(lambda: number?)
Parameters
lambda (number? = null) Lambda
Instance Members
fit(x)
predict(x)
inverse(z)

Yinyang k-Means algorithm

new YinyangKMeans(k: number, t: number?)
Parameters
k (number) Number of clusters
t (number?) Number of groups
Instance Members
centroids
init(datas)
fit()
predict(datas)

ZeroInflatedNegativeBinomial

lib/model/zinb.js

Zero-inflated negative binomial

new ZeroInflatedNegativeBinomial()
Instance Members
fit(x)
probability(x)

ZeroInflatedPoisson

lib/model/zip.js

Zero-inflated poisson

new ZeroInflatedPoisson(method: ("moments" | "maximum_likelihood")?)
Parameters
method (("moments" | "maximum_likelihood")? = 'maximum_likelihood') Method name
Instance Members
fit(x)
probability(x)

ZeroTruncatedPoisson

lib/model/ztp.js

Zero-truncated poisson

new ZeroTruncatedPoisson()
Instance Members
fit(x)
probability(x)

AcrobotRLEnvironment

lib/rl/acrobot.js

Acrobot environment

new AcrobotRLEnvironment()

Extends RLEnvironmentBase

RLRealRange

lib/rl/base.js

Real number range state/actioin

new RLRealRange(min: number, max: number)
Parameters
min (number) Minimum value
max (number) Maximum value
Instance Members
toSpace(resolution)
toArray(resolution)
indexOf(value, resolution)

RLIntRange

lib/rl/base.js

Integer number range state/actioin

new RLIntRange(min: number, max: number)
Parameters
min (number) Minimum value
max (number) Maximum value
Instance Members
length
toArray(resolution)
indexOf(value, resolution)

RLEnvironmentBase

lib/rl/base.js

Base class for reinforcement learning environment

new RLEnvironmentBase()
Properties
actions (Array<(Array<any> | RLRealRange | RLIntRange)>) : Action variables
states (Array<(Array<any> | RLRealRange | RLIntRange)>) : States variables
Instance Members
epoch
reward
clone()
reset()
state(agent)
setState(state, agent)
step(action, agent)
test(state, action, agent)
sample_action(agent)

EmptyRLEnvironment

lib/rl/base.js

Empty environment

new EmptyRLEnvironment()

Extends RLEnvironmentBase

BlackjackRLEnvironment

lib/rl/blackjack.js

Blackjack environment

new BlackjackRLEnvironment()

Extends RLEnvironmentBase

BreakerRLEnvironment

lib/rl/breaker.js

Breaker environment

new BreakerRLEnvironment()

Extends RLEnvironmentBase

CartPoleRLEnvironment

lib/rl/cartpole.js

Cartpole environment

new CartPoleRLEnvironment()

Extends RLEnvironmentBase

DraughtsRLEnvironment

lib/rl/draughts.js

Draughts environment

new DraughtsRLEnvironment()

Extends RLEnvironmentBase

GomokuRLEnvironment

lib/rl/gomoku.js

Gomoku environment

new GomokuRLEnvironment()

Extends RLEnvironmentBase

GridMazeRLEnvironment

lib/rl/grid.js

Grid world environment

new GridMazeRLEnvironment()

Extends RLEnvironmentBase

InHypercubeRLEnvironment

lib/rl/inhypercube.js

In-hypercube environment

new InHypercubeRLEnvironment(d: number?)

Extends RLEnvironmentBase

Parameters
d (number? = 2) Dimension of the environment

SmoothMazeRLEnvironment

lib/rl/maze.js

Smooth maze environment

new SmoothMazeRLEnvironment(width: number, height: number)

Extends RLEnvironmentBase

Parameters
width (number) Area width
height (number) Area height

MountainCarRLEnvironment

lib/rl/mountaincar.js

MountainCar environment

new MountainCarRLEnvironment()

Extends RLEnvironmentBase

PendulumRLEnvironment

lib/rl/pendulum.js

Pendulum environment

new PendulumRLEnvironment()

Extends RLEnvironmentBase

ReversiRLEnvironment

lib/rl/reversi.js

Reversi environment

new ReversiRLEnvironment()

Extends RLEnvironmentBase

WaterballRLEnvironment

lib/rl/waterball.js

Waterball environment

new WaterballRLEnvironment(width: number, height: number)

Extends RLEnvironmentBase

Parameters
width (number) Area width
height (number) Area height

Returns accuracy.

accuracy(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted classes
t (Array<any>) True classes
Returns
number: Accuracy

Returns precision with macro average.

precision(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted classes
t (Array<any>) True classes
Returns
number: Precision

Returns recall with macro average.

recall(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted classes
t (Array<any>) True classes
Returns
number: Recall

Returns F-score with macro average.

fScore(pred: Array<any>, t: Array<any>, beta: number?): number
Parameters
pred (Array<any>) Predicted classes
t (Array<any>) True classes
beta (number? = 1) Positive real factor. Recall is considered beta times as important as precision.
Returns
number: F-score

Returns Cohen's kappa coefficient.

cohensKappa(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted classes
t (Array<any>) True classes
Returns
number: Cohen's kappa coefficient

Returns Davies-Bouldin index.

davisBouldinIndex(data: Array<Array<number>>, pred: Array<any>, p: number, q: number): number
Parameters
data (Array<Array<number>>) Original data
pred (Array<any>) Predicted categories
p (number = 2) P
q (number = 1) Q
Returns
number: Davies-Bouldin index

silhouetteCoefficient

lib/evaluate/clustering.js

Returns Silhouette coefficient.

silhouetteCoefficient(data: Array<Array<number>>, pred: Array<any>): Array<number>
Parameters
data (Array<Array<number>>) Original data
pred (Array<any>) Predicted categories
Returns
Array<number>: Silhouette coefficient

Returns Dunn index.

dunnIndex(data: Array<Array<number>>, pred: Array<any>, intra_d: ("max" | "mean" | "centroid"), inter_d: "centroid"): number
Parameters
data (Array<Array<number>>) Original data
pred (Array<any>) Predicted categories
intra_d (("max" | "mean" | "centroid") = 'max') Intra-cluster distance type
inter_d ("centroid" = 'centroid') Inter-cluster distance type
Returns
number: Dunn index

Returns Purity.

purity(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted categories
t (Array<any>) True categories
Returns
number: Purity

Returns Rand index.

randIndex(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted categories
t (Array<any>) True categories
Returns
number: Rank index

Returns Dice index.

diceIndex(pred: Array<any>, t: Array<any>, beta: number?): number
Parameters
pred (Array<any>) Predicted categories
t (Array<any>) True categories
beta (number? = 1) Positive real factor. Recall is considered beta times as important as precision.
Returns
number: Dice index

Returns Jaccard index.

jaccardIndex(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted categories
t (Array<any>) True categories
Returns
number: Jaccard index

fowlkesMallowsIndex

lib/evaluate/clustering.js

Returns Fowlkes-Mallows index.

fowlkesMallowsIndex(pred: Array<any>, t: Array<any>): number
Parameters
pred (Array<any>) Predicted categories
t (Array<any>) True categories
Returns
number: Fowlkes-Mallows index

Returns Co-Ranking Matrix.

coRankingMatrix(x: Array<Array<number>>, z: Array<Array<number>>, ks: number, kt: number): number
Parameters
x (Array<Array<number>>) Reduced values
z (Array<Array<number>>) Original values
ks (number) Rank significance
kt (number) Failure tolerance
Returns
number: Co-Ranking Matrix value

Returns MSE (Mean Squared Error).

Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Mean Squared Error

Returns RMSE (Root Mean Squared Error).

rmse(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Root Mean Squared Error

Returns MAE (Mean Absolute Error).

Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Mean Absolute Error

Returns MAD (Median Absolute Deviation).

Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Median Absolute Deviation

Returns RMSPE (Root Mean Squared Percentage Error).

rmspe(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Root Mean Squared Percentage Error

Returns MAPE (Mean Absolute Percentage Error).

mape(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Mean Absolute Percentage Error

Returns MSLE (Mean Squared Logarithmic Error).

msle(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Mean Squared Logarithmic Error

Returns RMSLE (Root Mean Squared Logarithmic Error).

rmsle(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): RootMean Squared Logarithmic Error

Returns R2 (coefficient of determination).

Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Coefficient of determination

Returns correlation.

correlation(pred: (Array<number> | Array<Array<number>>), t: (Array<number> | Array<Array<number>>)): (number | Array<number>)
Parameters
pred ((Array<number> | Array<Array<number>>)) Predicted values
t ((Array<number> | Array<Array<number>>)) True values
Returns
(number | Array<number>): Correlation