We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Neural Nettwork (ANN) Extension
#87
Hi, maybe some misunderstandings here.

Ascii or binary refer to the file type that the training input data is stored, it is nothing to do with the fact that the data is 1s and 0s.

The data is initially stored in ascii (txt, non binary) format, in this case the data has to be delimiated by some character, " " or "," etc.  Before the most recent update today (1.2.0.7), each value of input training data had to be on a new line.  Open and look at the contents of orANNInput.txt file.

The command NeuralNetwork.ConvertFile(trainingDataText,trainingDataBinary,"False") converts the contents of trainingDataText.txt into a new binary file, creating the file defined by trainingDataBinary.  Open orANNInput.bin and look at how the same data is stored as a binary file.

The last argument ("True") of training command epoch = NeuralNetwork.Train(name,trainingDataBinary,"True") training command says that the file format of the training data is binary.

The other place where binary is mentioned is that the output is binary, option NeuralNetwork.BinaryOutput(name,0,"true").  Internally when using the ANN (NeuralNetwork.Use), the output will be calculated as a value between 0 and 1.  This option will just convert any result < 0.5 as 0, and a value >= 0.5 as 1.

We don't have to convert to binary input data - the following also works, training by reading the ascii input data, so the option to convert to binary file type is probably not that important really.

'*** NeuralNetwork.ConvertFile(trainingDataText,trainingDataBinary,"False") 'Commented out
textwindow.writeline("Training started")
epoch = NeuralNetwork.Train(name,trainingDataText,"False")

The fact that your input data is just 0s and 1s is not relevant to any of the discussions above.

Hope this is clearer.
Reply


Messages In This Thread
RE: Neural Nettwork (ANN) Extension - by litdev - 06-08-2024, 07:43 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-19-2024, 10:46 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-19-2024, 12:31 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-19-2024, 03:57 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-19-2024, 05:18 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-19-2024, 07:49 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-21-2024, 07:49 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-22-2024, 08:30 AM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-23-2024, 06:34 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-23-2024, 09:01 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-24-2024, 04:01 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-24-2024, 04:08 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-24-2024, 04:17 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-24-2024, 04:21 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-24-2024, 05:47 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-24-2024, 08:48 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-25-2024, 05:11 AM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-25-2024, 07:16 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 11:02 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 01:18 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-25-2024, 01:19 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 01:31 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 01:34 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-25-2024, 03:23 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 03:36 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-25-2024, 05:44 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-27-2024, 02:54 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-27-2024, 07:12 AM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-27-2024, 03:33 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-27-2024, 04:23 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-27-2024, 10:03 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-28-2024, 05:16 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-28-2024, 07:05 AM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-28-2024, 02:28 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 07-28-2024, 04:04 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-28-2024, 05:11 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 07-28-2024, 08:02 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 08-13-2024, 04:33 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-26-2024, 02:06 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-26-2024, 04:14 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-26-2024, 05:58 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-26-2024, 10:16 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-26-2024, 10:54 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 08-27-2024, 08:23 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 09-29-2024, 06:26 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 09-30-2024, 06:45 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 09-30-2024, 08:58 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 10-01-2024, 05:06 AM
RE: Neural Nettwork (ANN) Extension - by litdev - 10-01-2024, 05:24 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 10-01-2024, 08:52 PM
RE: Neural Nettwork (ANN) Extension - by z-s - 10-02-2024, 05:28 AM
RE: Neural Nettwork (ANN) Extension - by z-s - 10-02-2024, 01:18 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 10-03-2024, 12:34 PM
RE: Neural Nettwork (ANN) Extension - by Scout - 10-06-2024, 03:51 PM
RE: Neural Nettwork (ANN) Extension - by litdev - 10-09-2024, 05:26 PM
Neural Nettwork (ANN) Extension - by litdev - 06-08-2024, 01:41 PM
RE: SB Forms extension - by AbsoluteBeginner - 06-08-2024, 02:43 PM
RE: SB Forms extension - by litdev - 06-08-2024, 03:08 PM
RE: SB Forms extension - by AbsoluteBeginner - 06-08-2024, 04:10 PM
RE: SB Forms extension - by litdev - 06-08-2024, 06:54 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)