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.
33 lines
597 B
33 lines
597 B
4 years ago
|
"use strict"
|
||
|
|
||
|
var tape = require("tape")
|
||
|
var createExtractor = require("../contour.js")
|
||
|
var pack = require("ndarray-pack")
|
||
|
|
||
|
|
||
|
tape("test-vectorize", function(t) {
|
||
|
|
||
|
var verts = []
|
||
|
var cells = []
|
||
|
var testVectorizer = createExtractor({
|
||
|
order: [1, 0],
|
||
|
vertex: function(x, y) {
|
||
|
verts.push([x,y])
|
||
|
},
|
||
|
phase: function(s) {
|
||
|
console.log(s)
|
||
|
return s
|
||
|
},
|
||
|
cell: function(i, j, p0, p1) {
|
||
|
cells.push([i,j,p0,p1])
|
||
|
}
|
||
|
})
|
||
|
console.log(verts, cells)
|
||
|
|
||
|
testVectorizer(pack(
|
||
|
[ [0,1,0,0],
|
||
|
[0,1,1,1],
|
||
|
[1,1,1,0],
|
||
|
[0,0,1,0] ] ))
|
||
|
t.end()
|
||
|
})
|