This class implements the special weight required in recurrent neural networks to implement the BPTS algorithm. These weights can create duplicates of themselves, and their gradient value is calculated as the sum of the gradient values of the duplicates.
None public
RWeight()
Weight()
, and inizializes the duplicates set to the empty set.
RWeight(double x)
Weight(double x)
, and inizializes the duplicates set to the empty set.
CWeight *spawn()
bool mourn(CWeight *c)
false
if the pointer is not present in the set.
double gradient()