From: Mathieu D. <mat...@li...> - 2009-03-13 09:23:42
|
Hi everybody, I'm developing a small PCSIM extension (I have carefully followed the steps in the HowTo). I want to define a new class SquashingNeuron which derives from LinearNeuron. At each step it should sum the synaptic inputs (like LinearNeuron) and apply a squashing function. The implementation is straightforward (see attachments). Compilation & tests went fine. However (for debugging purpose) I would like to be able to record the "linear_sum" public member (which is the linear sum of synaptic inputs - result of LinearNeuron::advance(...) see code). When I try this I get the following error message: RuntimeError: PCSIM::Exception in function SimObject::findField: SquashingNeuron has no field named linear_sum Is there something wrong with my code or do I have to do something to turn a C++ public member into a PCSIM field? Interested readers will recognize the kind of squashing function used in the p-delta learning rule... which is what I would like to implement. Thanks in advance, Mathieu |