Small Basic Forum
Neural Nettwork (ANN) Extension - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3)
+--- Thread: Neural Nettwork (ANN) Extension (/showthread.php?tid=83)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12


RE: Neural Nettwork (ANN) Extension - litdev - 07-24-2024

JR,

This is a bug, fixed and uploaded a new version available with Extension Manager.


RE: Neural Nettwork (ANN) Extension - z-s - 07-24-2024

I Formatted Code : QDZM107.000
But I Don't Get This Could You Explain.

   

   

   


RE: Neural Nettwork (ANN) Extension - litdev - 07-24-2024

I assume you are asking what the outputs are, since the code you posted is just my original with File commands back in?

The textwindow has various output - see the code.
The coloured boxes are the results of using the trained ANN, they are displayed in pairs, where the left colour is the original R,G,B and the right is H,S,L trained using ANN.  First column of pairs come from the training data - you don't usually test with your training data - the other columns are new random data.
The plot is the RMS error of the training with Epoch.

If you have specific questions I can try to answer, but mostly its in the code...


RE: Neural Nettwork (ANN) Extension - z-s - 07-24-2024

What About This.
https://litdev.uk/mybb/showthread.php?tid=108&pid=955#pid955


RE: Neural Nettwork (ANN) Extension - jrmrhrb00 - 07-24-2024

LitDev,

I tried loading this by using extension manager and it still failed. Tried again using the beta download and it failed. Are you sure that you have it loaded?

JR


RE: Neural Nettwork (ANN) Extension - litdev - 07-24-2024

Im out just now, but remember its the ann extension not litdev.  I may have done it wrong will check later.


RE: Neural Nettwork (ANN) Extension - jrmrhrb00 - 07-24-2024

LitDev.

Tried with the extension manager a couple of times. Still no go.

JR


RE: Neural Nettwork (ANN) Extension - litdev - 07-24-2024

JR,

Can't see any reason why it doesn't work - uploaded again and this time tested by installing from EM - SmallBasicANN version 1.2.0.4.  My test code, basically same as yours, obviously saved in folder that contains the XOrANN.txt file.

Code:
name = "XOrANN"
name = NeuralNetwork.Load(Program.Directory+"\"+name+".txt")
TextWindow.WriteLine(NeuralNetwork.GetWeights(name))



RE: Neural Nettwork (ANN) Extension - jrmrhrb00 - 07-24-2024

LitDev,

I verified that the code is 1.2.04. Still got the same error. Index was outside the bounds of the array. I even tried it with regular Small Basic and got the same error.

You know this is really tough. We have an extension with 0 documentation. At least I can't find anything.

If you have any suggestions let me know!

I downloaded dnspy and am trying to use it. The thing I don't see is where an array is used. I don't even know where to look.

I did use your code snippet and that worked OK The main error is still "Index was ouside the bounds of the array, but with this now:
at SmallBasicANN.ANN.FeedForward()
at SmallBasicANN.ANN.Train(String fn, Boolean fm)
at SmallBasicANN.NeuralNetwork.Train(Primitive Name, Primitive TrainingSet, Primitive FileMode)
at _SmallBasicProgram._Main()

I am still using your original program ( ZWWL934.000). Trying to load the neural network. So, if you use that you might be able to reproduce.

JR


RE: Neural Nettwork (ANN) Extension - z-s - 07-25-2024

Hii JR
Everything works fine for me try this code I have reformatted by removing comments and work fine if there is any error then I think code and extension are working good.
Code : QDZM107.000