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.
 
 
 
 
StackGenVis/frontend/node_modules/fs-es6/writeStreamEs6.js

23 lines
476 B

import stream from 'stream'
export default class WriteStreamEs6 extends stream.Writable {
constructor(writer, options) {
super(options)
this.writer = writer
}
async _write(chunk, enc, next) {
const file = await this.writer
await file.write(this._createBlob(chunk))
next()
}
_createBlob(buffer) {
const buf = new Buffer(buffer.byteLength)
for (let i = 0; i < buf.length; ++i)
buf[i] = buffer[i]
return new Blob([buf])
}
}