Neural Network Extension - Small Basic Featured Thread
Published Feb 12 2019 03:33 PM 455 Views
Iron Contributor
First published on MSDN on Nov 06, 2014

Authored by Nonki Takahashi


Today I'd like to introduce a great thread in Small Basic forum, "Neural Network Extension" .


This extension was written by EzyMCP .  You can download the extension and the sample code.


SmallBasicANN.dll and SmallBasicANN.xml are the extension files.  These files should be copied to C:\Program Files (x86)\Microsoft\Small Basic\lib folder.


ANN_XOR.sb is a sample file.  And xor.set file is a training set data for ANN_XOR.sb .



This sample creates a neural network for calculating XOR.  At first the ANN (artificial neural network) is created with 2 input layer, 3 hidden layer and 1 output layer as the picture above.  Then the ANN is trained with the training set data (xor.set).  This data is binary file.  So, I made a little program as below.  The training set data contains input data and expected output data.



input = "xor.set"

output = "xor.txt"

NeuralNetwork . ConvertFile ( input , output , "True" )


At last, ANN_XOR.sb calculate with four input data set "0,0", "0,1", "1,0", "1,1".


Thank you EzyMCP for sharing fantastic extension!

Version history
Last update:
‎Feb 12 2019 03:33 PM
Updated by: