[pdp-discuss] writing out delta weight changes to file
Randall C. O'Reilly
Randy.OReilly at colorado.edu
Mon Jan 1 22:23:22 MST 2007
r.pdw is teh variable you want. those values don't live in the monitor stat
itself. the monitor stat just creates them in a textlog. so, you'd need to
access from the log: .logs.TextLogName.data.etc. it might just be easier to
access from the network itself:
e.g., .networks.mynet.layers.mylayer.unit[0].recv.gp[0][0].pdw.
- Randy
On Saturday 30 December 2006 11:27, rama0042 at umn.edu wrote:
> Dear List,
>
> I am having trouble writing out delta weight changes to a data file using
> the script language.
>
> I want to make a list of all of the connection weight changes from one
> trial of learning to the next, for both the input-hidden and the
> hidden-output connections.
>
> The first question I have is: are r.pdw and s.pdw the appropriate items if
> I want to access the *change* in weights from one trial to the next? I
> think the answer is yes, but I want to doublecheck.
>
> More importantly, here is the main problem that I have:
>
> I have no problem creating a textlog: I can create a log of r.pdw or s.pdw
> values, which it reports under a column titled, for example,
> "Hidd[0][0][0].pdw". However, I can't figure out how to access these
> values, either individually (eg: Hidd[0][0][1]), or in an iterative fashion
> (iterating over the indices) and write to an output file using the script
> language.
>
> I've tried all kinds of variations on a line like this:
>
> foutweightdeltas<<.processes[2].loop_stats[3].Hidd[i][j][k].pdw.val;
>
> The error message says that there is no such monitorstat. So, I've also
> tried variations on this kind of thing:
>
> foutweightdeltas<<.processes[2].loop_stats[3].sum_r.pdw_Hidd.val<<;
>
> Again, it doesn't recognize this (calling it a syntax error, and choking on
> the "r.").
>
> Any ideas?
>
> Thanks,
> Pradeep
More information about the PDP-Discuss
mailing list