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
#95
JR,

This is just setting or getting a variable used by the extension.  In many cases properties are just set or get with an = in Small Basic, for example: GraphicsWindow.BackgroundColor, this can be set with:

GraphicsWindow.BackgroundColor  = "Red"

Or we can get the value with:

colour = GraphicsWindow.BackgroundColor

However, in this case the property also needs to pass in an argument "Name" to identify the ANN to set the property for and we use a method with arguments for this.  And to determine if the value is to be set or not, there is a flag argument called "Get".  Since a method function can return a value, it always returns the current value (seems reasonable).  This may be a bit confusing, but seems logical enough to me?

Perhaps, your question is more to do with the implementation code reported by ILSpy in C# you highlight in your question, or perhaps to do with the use of NeuralNetwork.BinaryOutput method, or maybe just the intellisense (which I added since there was none with the original extension dll).

But for its use, it is just a property used by one of potentially several ANNs, with arguments identifying the ANN, the value to set (if we are setting), a flag to say if we are getting or setting the value, and the return is always the current value.  I suppose we could have 2 functions, one for set and one for get, but its not obvious to me that is easier to understand.
[-] The following 1 user Likes litdev's post:
  • jrmrhrb00
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: 6 Guest(s)