Added Limited Epoch Event Buffer

for better frontend performance when using big  max epoch number
This commit is contained in:
2026-03-21 09:42:05 +01:00
parent f0e7be4476
commit 6abb417430
10 changed files with 149 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ function getPerceptronDecisionBoundaryDataset(
networkWeights[0].length == 1 &&
networkWeights[0][0].length == 3
) { // Unique, 3 weights perceptron
const perceptronWeights = networkWeights[0][0]; // We take the unique
const perceptronWeights = networkWeights[0][0]; // We take the unique perceptron
function perceptronLine(x: number): number {
// w0 + w1*x + w2*y = 0 => y = -(w1/w2)*x - w0/w2
@@ -161,7 +161,7 @@ function getPerceptronDecisionBoundaryDataset(
color: function (context) {
if (context.tick.value == 0) {
return gridColorBold;
}
}
return gridColor;
},
@@ -174,7 +174,7 @@ function getPerceptronDecisionBoundaryDataset(
color: function (context) {
if (context.tick.value == 0) {
return gridColorBold;
}
}
return gridColor;
},