C# Класс Encog.Neural.Networks.Structure.CalculateDepth

Utility class to calculate the depth that a layer is from the output layer. If there are multiple ways to get to the specified layer, then the longest depth is returned. This class is used by propagation training to ensure that the layers are always returned on a consistent order.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculateDepth ( BasicNetwork network ) : System

Construct the depth calculation object.

GetDepth ( ILayer layer ) : int

Get the depth for a specific layer.

Приватные методы

Метод Описание
Calculate ( int currentDepth, ILayer layer ) : void

Called internally to calculate a depth.

Описание методов

CalculateDepth() публичный Метод

Construct the depth calculation object.
public CalculateDepth ( BasicNetwork network ) : System
network BasicNetwork The network that we are calculating for.
Результат System

GetDepth() публичный Метод

Get the depth for a specific layer.
public GetDepth ( ILayer layer ) : int
layer ILayer The layer to get the depth for.
Результат int