C# Class 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.
Mostrar archivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CalculateDepth ( BasicNetwork network ) : System

Construct the depth calculation object.

GetDepth ( ILayer layer ) : int

Get the depth for a specific layer.

Private Methods

Method Description
Calculate ( int currentDepth, ILayer layer ) : void

Called internally to calculate a depth.

Method Details

CalculateDepth() public method

Construct the depth calculation object.
public CalculateDepth ( BasicNetwork network ) : System
network BasicNetwork The network that we are calculating for.
return System

GetDepth() public method

Get the depth for a specific layer.
public GetDepth ( ILayer layer ) : int
layer ILayer The layer to get the depth for.
return int