mlp_net-absolute-weight-indices: Retrieving absolute weight index

Description Usage Arguments Value

Description

In some situations absolute weight index (i.e. index within all weights including inactive ones) needs to be computed based on information about connected neurons' indices or weight index within actives ones. The latter functionality is especially useful in implementation of pruning algorithms.

Usage

1
2
3
mlp_get_w_idx(net, layer, nidx, nplidx)

mlp_get_w_abs_idx(net, idx)

Arguments

net

an object of mlp_net class

layer

integer value (vector), layer index

nidx

integer value (vector), neuron index

nplidx

integer value (vector), index of the neuron in the previous layer determining connection from neuron nidx in layer, 0 denotes bias of neuron nidx in layer

idx

integer value (vector), weight index (indices) within active ones

Value

Absolute weight index.


FCNN4R documentation built on May 29, 2017, 4:26 p.m.