StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| .npmignore | 4 years ago | |
| .travis.yml | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| package.json | 4 years ago | |
| scratch.js | 4 years ago | |
README.md
ndarray-scratch
A simple wrapper for typedarray-pool. I got tired of manually constructing ndarrays from typedarrays, and so this module saves some keystrokes/sanity.
Example
var pool = require("ndarray-scratch")
//Create a temporary typed array
var x = pool.malloc([100,100])
//Do stuff with x
//Release x
pool.free(x)
Install
npm install ndarray-scratch
API
var pool = require("ndarray-pool")
pool.malloc(shape[, dtype])
Allocates a temporary ndarray
shapeis the shape of the array to allocatedtypeis the dtype of the array to allocate (default"double")
Returns a temporary ndarray
pool.zeros(shape[,dtype])
Creates a scratch ndarray initialized to 0
shapeis the shape of the resulting arraydtypeis the datatype of the array (default"double")
Returns A temporary ndarray initialized to 0
pool.ones(shape[,dtype])
Creates a scratch ndarray initialized to 1
shapeis the shape of the resulting arraydtypeis the datatype of the array (default"double")
Returns A temporary ndarray initialized to 1
pool.eye(shape[,dtype])
Creates a scratch ndarray initialized to 1 if all indices equal, 0 otherwise.
shapeis the shape of the resulting arraydtypeis the datatype of the array (default"double")
Returns A temporary ndarray initialized to the identity matrix
pool.free(array)
Releases a temporary ndarray
arrayis the ndarray to release.
pool.clone(array)
Creates a copy of an ndarray with row-major order.
arrayis an ndarray
Returns A temporary copy of array
Credits
(c) 2013-2014 Mikola Lysenko. MIT License

