Added Limited Epoch Event Buffer
for better frontend performance when using big max epoch number
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user