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.
20 lines
610 B
20 lines
610 B
4 years ago
|
'use strict'
|
||
|
|
||
|
module.exports = genPartition
|
||
|
|
||
|
var code = 'for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m'
|
||
|
|
||
|
function genPartition(predicate, args) {
|
||
|
var fargs ='abcdef'.split('').concat(args)
|
||
|
var reads = []
|
||
|
if(predicate.indexOf('lo') >= 0) {
|
||
|
reads.push('lo=e[k+n]')
|
||
|
}
|
||
|
if(predicate.indexOf('hi') >= 0) {
|
||
|
reads.push('hi=e[k+o]')
|
||
|
}
|
||
|
fargs.push(
|
||
|
code.replace('_', reads.join())
|
||
|
.replace('$', predicate))
|
||
|
return Function.apply(void 0, fargs)
|
||
|
}
|