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.
22 lines
497 B
22 lines
497 B
4 years ago
|
var preprocessPolygon = require("point-in-big-polygon")
|
||
|
var classifyPoint = preprocessPolygon([
|
||
|
[ [-10, -10], [-10, 10], [10, 10], [10, -10] ],
|
||
|
[ [-1, -1], [1, -1], [1, 1], [-1, 1] ]
|
||
|
])
|
||
|
|
||
|
var img = []
|
||
|
for(var y=-12; y<=12; y+=0.5) {
|
||
|
var row = []
|
||
|
for(var x=-12; x<=12; x+=0.5) {
|
||
|
var v = classifyPoint([x, y])
|
||
|
if(v < 0) {
|
||
|
row.push('-')
|
||
|
} else if(v === 0) {
|
||
|
row.push('o')
|
||
|
} else {
|
||
|
row.push('+')
|
||
|
}
|
||
|
}
|
||
|
img.push(row.join(''))
|
||
|
}
|
||
|
console.log(img.join('\n'))
|