[pdp-discuss] Turning off kwta in a leabra layer?
Randall C. O'Reilly
Randy.OReilly at colorado.edu
Thu Jun 7 19:52:18 MDT 2007
pat_q is just a threshold on the unit input value for computing what k should
be -- in pseudocode:
if(unit->ext >= pat_q) pat_k++;
I don't have a script handy, but you just do something like this:
Layer* lay = network.layers.OutputLayerName; // insert your name here..
float trg_val = lay.units[0].targ;
float act_val = lay.units[0].act_m;
float err = trg_val - act_val;
float sq_err = err * err;
you can then stick the sq_err value (and/or err) in the stat vals of a
ScriptStat -- you might find an example of this somewhere in the demos/leabra
directory or in the projects from the textbook:
zcat projfile.proj.gz | grep ScriptStat
to find files with script stats.
- Randy
On Thursday 07 June 2007 13:43, Frank Leoné wrote:
> Thanks for the reply! Now I get the effect of the input inhibition settings
> and the way of calculating the error. I don't get what pat_q stands for
> though and I can't find a definition anywhere. Could you explain it to me?
>
> And do you have a script to calculate the error the right way? Would really
> be of great help if you had. Otherwise I'll just figure out how to do it
> myself.
>
> Thanks again,
>
> kind regards,
>
> Frank
>
> _________________________________________________________________
> Live Search, for accurate results! http://www.live.nl
>
> _______________________________________________
> PDP-Discuss mailing list
> PDP-Discuss at psych.Colorado.EDU
> http://psych.colorado.edu/mailman/listinfo/pdp-discuss
More information about the PDP-Discuss
mailing list