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.
24 lines
605 B
24 lines
605 B
4 years ago
|
exports.newInMsgEvtInterceptor = function(session) {
|
||
|
return new inMsgEvtInterceptor(session);
|
||
|
};
|
||
|
|
||
|
|
||
|
function inMsgEvtInterceptor(session){
|
||
|
var self = this;
|
||
|
this.incoming = function(ctx, event){
|
||
|
if(event.type === 'data'){
|
||
|
session.sessionEmitter.emit('incomingmsg',event.data[49], event.data[56], event.data);
|
||
|
}
|
||
|
else if(event.type==='resync'){
|
||
|
self.emit('incomingresync',event.data[49], event.data[56], event.data);
|
||
|
}
|
||
|
|
||
|
ctx.sendNext(event);
|
||
|
}
|
||
|
|
||
|
this.outgoing = function(ctx, event){
|
||
|
ctx.sendNext(event);
|
||
|
}
|
||
|
}
|
||
|
|