[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scripts
SweetEz@aol.com writes:
> I am trying to write a script in order to run the same test on a model
> multiple times but with NEW INIT each time.
this can be achieved by just adding a BatchProcess on top of your
TrainProcess -- the batch process will loop over multiple trainings
> And after each time its trained,
> I would like to test it and have the results recorded in a text log (and into
> a text file).
You can make a separate processing hierarchy for testing by creating
an epoch process and associated sub-processes. Then, link this epoch
process into the final_procs of the TrainProcess and it will
automatically be run at the end of training..
> Also after that, I would like to do the same for a different
> number of train max. Is there a way to write a script to do that? I am pretty
> new at working pdp and I would appreciate any guidance. Thank you very much
> for your time.
You can then write a script that just sets trainprocess.epoch.max to
whatever -- you could make this based on the batch counter too.
e.g., you could create a ScriptProcess in TrainProcess.init_procs, and
enter this script:
TrainProcess* trn = *(owner->owner);
BatchProcess* bat = *(trn->super_proc);
trn->epoch.max = 100 + bat.batch.val * 10; // incr max by 10 for each batch
- Randy