Misc Fixes for ADALINE

This commit is contained in:
2026-03-24 17:12:15 +01:00
parent 0876588550
commit ca9c0dc511
4 changed files with 9 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ function getPerceptronDecisionBoundaryDataset(
networkWeights[0][0].length <= 3
) {
// Unique, 3 weights perceptron
const perceptronWeights = networkWeights[0][0]; // We take the unique perceptron
const perceptronWeights = [...networkWeights[0][0]]; // Copy of the unique perceptron weights
function perceptronLine(x: number): number {
if (perceptronWeights.length < 3) {
@@ -167,6 +167,7 @@ function getPerceptronDecisionBoundaryDataset(
<Chart
v-if="props.cleanedDataset.length > 0 || props.iterations.length > 0"
class="flex bg-primary dark:bg-transparent!"
type="scatter"
:options="{
responsive: true,
maintainAspectRatio: true,