|
NeuralSharp
1.0
NeuralSharp is a FOSS C# library for neural networks.
|
Represents a layer which converts an array to an image. More...
Inherits NeuralSharp.Convolutional.IArrayImageLayer.
Public Member Functions | |
| ArrayToImage (int outputDepth, int outputWidth, int outputHeight, bool createIO=false) | |
| Create an instance of the More... | |
| void | Feed (bool learning) |
| Feeds the layer forward. More... | |
| void | BackPropagate (Image outputError, float[] inputError, bool learning) |
| Backpropagates the given error trough the layer. More... | |
| void | UpdateWeights (float rate, float momentum=0.0F) |
| Updates the weights of the layer. Does nothing. More... | |
| void | SetInputAndOutput (float[] inputArray, int inputSkip, Image output) |
| Sets the input array and the output image of the layer. More... | |
| void | SetInputAndOutput (float[] input, Image output) |
| Sets the input array and the output image of the layer. More... | |
| Image | SetInputGetOutput (float[] input) |
| Sets the input array of the layer and creates and sets an output image. More... | |
| virtual ILayer< float[], Image > | CreateSiamese () |
| Creates a siamese of this layer. More... | |
| virtual ILayer< float[], Image > | Clone () |
| Creates a clone of this layer. More... | |
| int | CountParameters (List< object > siameseIDs) |
| Computes the amount of parameters of the layer. More... | |
| Public Member Functions inherited from NeuralSharp.ILayer< float[], Image > | |
| int | CountParameters (List< object > siameseIDs) |
| Counts the amount of parameters of the layer. More... | |
| void | Feed (bool learning=false) |
| Feeds the layer forward. More... | |
| void | UpdateWeights (float rate, float momentum=0.0F) |
| Updates the weights of the layer. More... | |
| void | BackPropagate (TOut outputError, TIn inputError, bool learning) |
| Backpropagates the given error trough the layer. More... | |
| void | SetInputAndOutput (TIn input, TOut output) |
| Sets the input object and the output object of the layer. More... | |
| TOut | SetInputGetOutput (TIn input) |
| Sets the input object of the layer and creates and sets the output object. More... | |
| ILayer< TIn, TOut > | CreateSiamese () |
| Creates a siamese of the layer. More... | |
| ILayer< TIn, TOut > | Clone () |
| Clones the layer. More... | |
Protected Member Functions | |
| ArrayToImage (ArrayToImage original, bool siamese) | |
| Either creates a siamese of the given More... | |
Properties | |
| float [] | Input [get] |
| The input array of the layer. More... | |
| Image | Output [get] |
| The output image of the layer. More... | |
| int | OutputDepth [get] |
| The depth of the output of the layer. More... | |
| int | OutputWidth [get] |
| The width of the output of the layer. More... | |
| int | OutputHeight [get] |
| The height of the output of the layer. More... | |
| int | InputSize [get] |
| The length of the input of the layer. More... | |
| int | InputSkip [get] |
| The index of the first used entry of the input array. More... | |
| int | Parameters [get] |
| The amount of parameters of the layer. Always More... | |
| object | SiameseID [get] |
| The siamese identifier of the layer. More... | |
| Properties inherited from NeuralSharp.Convolutional.IArrayImageLayer | |
| int | InputSize [get] |
| The length of the input of the layer. More... | |
| int | InputSkip [get] |
| The index of the first entry of the input array to be used. More... | |
| int | OutputDepth [get] |
| The depth of the output of the layer. More... | |
| int | OutputWidth [get] |
| The width of the output of the layer. More... | |
| int | OutputHeight [get] |
| The height of the output of the layer. More... | |
| Properties inherited from NeuralSharp.ILayer< float[], Image > | |
| TIn | Input [get] |
| The input object of the layer. More... | |
| TOut | Output [get] |
| The output object. More... | |
| int | Parameters [get] |
| The amount of parameters of the layer. More... | |
| object | SiameseID [get] |
| The siamese identifier of the layer. More... | |
Represents a layer which converts an array to an image.
|
protected |
Either creates a siamese of the given
ArrayToImage
instance or clones it.
| original | The original instance to be created a siamese of or cloned. |
| siamese | true false |
| NeuralSharp.Convolutional.ArrayToImage.ArrayToImage | ( | int | outputDepth, |
| int | outputWidth, | ||
| int | outputHeight, | ||
| bool | createIO = false |
||
| ) |
Create an instance of the
ArrayToImage
class.
| outputDepth | The depth of the output of the layer. |
| outputWidth | The width of the output of the layer. |
| outputHeight | The height of the output of the layer. |
| createIO | Whether the input array and the output image of the layer are to be created. |
| void NeuralSharp.Convolutional.ArrayToImage.BackPropagate | ( | Image | outputError, |
| float [] | inputError, | ||
| bool | learning | ||
| ) |
Backpropagates the given error trough the layer.
| outputError | The output error to be backpropagated. |
| inputError | The array to be written the input error into. |
| learning | Whether the layer is being used in a training session. Unused. |
Creates a clone of this layer.
| int NeuralSharp.Convolutional.ArrayToImage.CountParameters | ( | List< object > | siameseIDs | ) |
Computes the amount of parameters of the layer.
| siameseIDs | The siamese identifiers to be excluded. The siamese identifiers of the layer will be added to the list. |
Creates a siamese of this layer.
| void NeuralSharp.Convolutional.ArrayToImage.Feed | ( | bool | learning | ) |
Feeds the layer forward.
| learning | Whether the layer is being used in a training session. Unused. |
| void NeuralSharp.Convolutional.ArrayToImage.SetInputAndOutput | ( | float [] | inputArray, |
| int | inputSkip, | ||
| Image | output | ||
| ) |
Sets the input array and the output image of the layer.
| inputArray | The input array to be set. |
| inputSkip | The index of the first entry of the given array to be used. |
| output | The output image to be set. |
| void NeuralSharp.Convolutional.ArrayToImage.SetInputAndOutput | ( | float [] | input, |
| Image | output | ||
| ) |
Sets the input array and the output image of the layer.
| input | The input array to be set. |
| output | The output image to be set. |
| Image NeuralSharp.Convolutional.ArrayToImage.SetInputGetOutput | ( | float [] | input | ) |
Sets the input array of the layer and creates and sets an output image.
| input | The input array to be set. |
| void NeuralSharp.Convolutional.ArrayToImage.UpdateWeights | ( | float | rate, |
| float | momentum = 0.0F |
||
| ) |
Updates the weights of the layer. Does nothing.
| rate | The learning rate to be used. |
| momentum | The momentum to be used. |
|
get |
The input array of the layer.
|
get |
The length of the input of the layer.
|
get |
The index of the first used entry of the input array.
|
get |
The output image of the layer.
|
get |
The depth of the output of the layer.
|
get |
The height of the output of the layer.
|
get |
The width of the output of the layer.
|
get |
The amount of parameters of the layer. Always
0
.
|
get |
The siamese identifier of the layer.