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.
29 lines
485 B
29 lines
485 B
4 years ago
|
var dup = require("../dup.js")
|
||
|
|
||
|
require("tap").test("dup", function(t) {
|
||
|
|
||
|
t.equals(dup().length, 0)
|
||
|
|
||
|
var a = dup(5)
|
||
|
t.equals(a.length, 5)
|
||
|
for(var i=0; i<5; ++i) {
|
||
|
t.equals(a[i], 0)
|
||
|
}
|
||
|
|
||
|
var b = dup([3,2], 1)
|
||
|
t.equals(b.length, 3)
|
||
|
for(var i=0; i<3; ++i) {
|
||
|
var c = b[i]
|
||
|
t.equals(c.length, 2)
|
||
|
t.equals(c[0], 1)
|
||
|
t.equals(c[1], 1)
|
||
|
if(i > 0) {
|
||
|
t.assert(b[i] !== b[i-1])
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var c = dup([], 100)
|
||
|
t.equals(c.length, 0)
|
||
|
|
||
|
t.end()
|
||
|
})
|