Skip to content

How to solve this system of equations as a neural network trains and predict? #2

@DrFrankatron

Description

@DrFrankatron

I have some code:

[
//perceptron

'r1=b+(m1*x11)+(m2*x12)',
'r2=b+(m1*x21)+(m2*x22)',
'r3=b+(m1*x31)+(m2*x32)',

//entrenamiento

'r1=0',
'x11=0',
'x12=0',

'r2=0',
'x21=1',
'x22=0',

'r3=0',
'x31=0',
'x32=1',

//soluciones

'r4=b+(m1*x41)+(m2*x42)',
'r5=b+(m1*x51)+(m2*x52)',
'r6=b+(m1*x61)+(m2*x62)',
'r7=b+(m1*x71)+(m2*x72)',

'x41=0',
'x42=0',

'x51=1',
'x52=0',

'x61=0',
'x62=1',

'x71=1',
'x72=1',

]

And its throwing this:

image

Im using 5 libraries:

<script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/nerdamer.core.js"></script> <script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Algebra.js"></script> <script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Calculus.js"></script> <script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Solve.js"></script> <script src="https://cdn.jsdelivr.net/npm/weather-js@2.0.0/index.min.js"></script>

And I dont know why this neural network cant configure and predict the values. There is any help? Thanks anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions