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.
18 lines
421 B
18 lines
421 B
'use strict'
|
|
|
|
var ndarray = require('ndarray')
|
|
|
|
function setupGL() {
|
|
var canvas = document.createElement('canvas')
|
|
canvas.width = canvas.height = 512
|
|
return canvas.getContext('webgl')
|
|
}
|
|
|
|
exports.setup = setup
|
|
|
|
function readPixels(gl) {
|
|
var pixels = new Uint8Array(512*512*4)
|
|
gl.readPixels(0, 0, 512, 512, gl.RGBA, gl.UNSIGNED_BYTE, pixels)
|
|
return ndarray(pixels, [512,512,4])
|
|
}
|
|
exports.readPixels = readPixels |