Welcome to our Support Center

Set “lda_coeff” by index


Sets the loss derivative attenuation coefficient of layer selected by the index given as input.

Input parameters


Model in : model architecture.
Β index :Β integer,Β layer index.
lda_coeff : float, loss derivative attenuation coefficient value.

Output parameters


Model out : model architecture.


All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Using the β€œSet lda_coeff by index” function

1 – Define Graph

We define the graph with one input and two Dense layers named Dense1 and Dense2. We set the Dense1 layer with a “lda_coeff” equal to 2 and the Dense2 layer with a “lda_coeff” equal to 5.

2 – Get Function

We use the “Set lda_coeff by index” function to set the loss derivative attenuation of the layer at index 2 with the value 1.

2 – Get Function

We use the “Get All lda_coeff” function to get the value of this parameter for all layers in the model.

Table of Contents