Class defining a neural network topology - a set of layers and connection between them - on the prediction stage.
More...
- Deprecated:
- This item will be removed in a future release.
def __init__ |
( |
|
self, |
|
|
|
args |
|
) |
| |
- Variant 1
Constructs neural network topology for prediction algorithm by copying layers of topology used for training algoritnm
- Parameters
-
t | Neural network topology to be used as the source to initialize layers |
- Deprecated:
- This item will be removed in a future release.
- Variant 2
Constructs neural network topology by copying layers of another topology
- Parameters
-
t | Neural network topology to be used as the source to initialize layers |
- Deprecated:
- This item will be removed in a future release.
def __getitem__ |
( |
|
self, |
|
|
|
i |
|
) |
| |
def __setitem__ |
( |
|
self, |
|
|
|
i, |
|
|
|
v |
|
) |
| |
- Variant 1
Adds an element to the collection of layers and assigns the next available id to it
- Parameters
-
- Returns
- Index of the element
- Deprecated:
- This item will be removed in a future release.
- Variant 2
Adds a block of elements to the collection of layers
- Parameters
-
topologyBlock | Block to add |
startIndex | Index of the first element of the block in topology |
- Returns
- Index of the last element of the block in topology
- Deprecated:
- This item will be removed in a future release.
def addNext |
( |
|
self, |
|
|
|
index, |
|
|
|
next |
|
) |
| |
Adds next layer to the given layer
- Parameters
-
index | Index of the layer to add next layer |
next | Index of the next layer |
- Deprecated:
- This item will be removed in a future release. Following with LayerDescriptor.addNext method.
- Returns
- Status of computations
- Deprecated:
- This item will be removed in a future release.
Clears a topology: removes all layer descriptors and sets size to 0
- Returns
- Status of computations
- Deprecated:
- This item will be removed in a future release.
- Variant 1
Element access
- Parameters
-
index | Index of an accessed element |
- Returns
- Reference to the element
- Deprecated:
- This item will be removed in a future release.
- Variant 2
Const element access
- Parameters
-
index | Index of an accessed element |
- Returns
- Reference to the element
- Deprecated:
- This item will be removed in a future release.
def push_back |
( |
|
self, |
|
|
|
layer |
|
) |
| |
Adds an element to the collection of layers and assigns the next available id to it
- Parameters
-
- Returns
- Index of the element
- Deprecated:
- This item will be removed in a future release.
Number of layers in the topology
- Returns
- Size of the collection
- Deprecated:
- This item will be removed in a future release.
The documentation for this class was generated from the following file:
- neural_networks/prediction.py