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
#96
litDev,

Here's a snippet:

name="XorANN"
'where=program.Directory
'textwindow.writeline(where)
Data=NeuralNetwork.Load("c:\temp\"+name+".txt")
Data=NeuralNetwork.BinaryOutput("c:\temp\"+name+".txt",0,"False")
TextWindow.WriteLine(Data)

If I comment out the second line for data, TextWindow.Writeline prints the first data with the correct name. So, that means it did find the ANN. If I uncomment the second line, textwindow.writeline says "Error a neural network with that name doesn't exist.

I don't understand why that would be! As it just found it. Your thoughts?

ILspy just shows this:

// SmallBasicANN.NeuralNetwork
/// <summary>
/// Get or set wether the data is binary "True" or not.
/// </summary>
/// <param name="Name">The ANN name.</param>
/// <param name="Value">The requested data.</param>
/// <param name="Get">"True" to get the requested data.</param>
/// <returns>An error message or the requested data.</returns>
public static Primitive BinaryOutput(Primitive Name, Primitive Value, Primitive Get)
{
    ANN aNN;
    if (!NeuralNetwork.dictionaryANN.TryGetValue(Name, out aNN))
    {
        return "Error: a neural network with that name doesn't exist";
    }
    if (!Get)
    {
        aNN.BinaryOutput = Value;
    }
    return aNN.BinaryOutput;
}

JR
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 jrmrhrb00 - 09-30-2024, 05:38 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: 11 Guest(s)