Misc Fixes for ADALINE
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user