mlp_net-accessing-individual-weights: Setting and retrieving status (on/off) and value of...

Description Usage Arguments Value

Description

The following functions can be used to access individual weight(s), i.e. set or retrieve status(es) (on/off) and value(s).

Usage

1
2
3
4
5
6
7
8
9
mlp_set_w_st(net, on, idx = NULL, layer = NULL, nidx = NULL,
  nplidx = NULL)

mlp_set_w(net, val, idx = NULL, layer = NULL, nidx = NULL,
  nplidx = NULL)

mlp_get_w_st(net, idx = NULL, layer = NULL, nidx = NULL, nplidx = NULL)

mlp_get_w(net, idx = NULL, layer = NULL, nidx = NULL, nplidx = NULL)

Arguments

net

an object of mlp_net class

on

logical value (vector), should the weight be set on or off?

idx

integer value (vector), weight absolute index

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

val

numeric value (vector), connection (or bias) value to be set

Value

mlp_set_w_st returns network (an object of mlp_net class) with state(s) (on/off) of selected weight(s) set.

mlp_set_w returns network (an object of mlp_net class) with value(s) of selected weight(s) set.

mlp_get_w_st returns logical value (vector), TRUE if connection/bias is active, FALSE otherwise.

mlp_get_w returns numeric value (vector), selected weight value(s).


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