Closed Rafnuss closed 2 years ago
With large files, I get the following error Uncaught RangeError: Maximum call stack size exceeded
Uncaught RangeError: Maximum call stack size exceeded
for https://github.com/Geocene/trainset/blob/eac024707971316ff5481868658d04a2a4f2b2a0/src/assets/js/LabelerD3.js#L765
It seems to work if you replace this line with
minMax = y_vals.reduce(([min, max], val) => [Math.min(min, val), Math.max(max, val)], [ Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, ]);
Actually, this might be a duplicate of #113
With large files, I get the following error
Uncaught RangeError: Maximum call stack size exceeded
for https://github.com/Geocene/trainset/blob/eac024707971316ff5481868658d04a2a4f2b2a0/src/assets/js/LabelerD3.js#L765
It seems to work if you replace this line with