new DenseVector(values)
Parameters:
Name |
Type |
Description |
values |
Array.<number>
|
|
- Source:
Extends
Methods
apply(i) → {Promise.<number>}
Parameters:
Name |
Type |
Description |
i |
number
|
|
- Source:
Returns:
-
Type
-
Promise.<number>
argmax() → {Promise.<number>}
- Source:
Returns:
-
Type
-
Promise.<number>
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/linalg.DenseVector
foreachActive(f) → {Promise.<Void>}
Parameters:
Name |
Type |
Description |
f |
func
|
|
- Source:
Returns:
A Promise that resolves to nothing.
-
Type
-
Promise.<Void>
hashCode() → {Promise.<number>}
- Source:
Returns:
-
Type
-
Promise.<number>
numActives() → {Promise.<number>}
- Source:
Returns:
-
Type
-
Promise.<number>
numNonzeros() → {Promise.<number>}
- Source:
Returns:
-
Type
-
Promise.<number>
size() → {Promise.<number>}
- Source:
Returns:
-
Type
-
Promise.<number>
toArray() → {Promise.<Array.<number>>}
- Source:
Returns:
-
Type
-
Promise.<Array.<number>>
toJson() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>
toSparse() → {SparseVector}
- Source:
Returns:
-
Type
-
SparseVector
toString() → {Promise.<string>}
- Source:
Returns:
-
Type
-
Promise.<string>