LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Euclidean matrix distance for radial basis neural network

Solved!
Go to solution
Solution
Accepted by topic author Kamila_Jankowska

Yes, many things could be simplified. You don't need matrices or any matrix operations.

 

(I had to add some formatting code because your decimal delimiter is comma, which the US version does not understand directly, thus the "%,;" in the format)

 

Modify as needed. As I said most of your file data is 1D, so don't drag it along as 2D arrays.

 

 

altenbach_0-1592173977302.png

 

Note that you could substitute the dot product for the last Multiply&Sum but it probably does not make a difference, except that it requires loading lvanly.dll, which is otherwise not needed. It is also a bit more picky, for example it will fail if the two arrays differ in length while the above code just let the shorter size win.)

 

altenbach_1-1592174658602.png

 

Not extensively tested. Please verify correct operation.

 

Message 21 of 23
(642 Views)

It works good and looks pretty smart, thank you very much. I am going to try optimize perceptron and Kohonen map either. In fact I used matrixes because I thought it will be good for MLP network but in here it was a source of trouble.

0 Kudos
Message 22 of 23
(589 Views)

It has been fun to study this. Good luck with your project. 🙂

0 Kudos
Message 23 of 23
(586 Views)