[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PDP++ css startup issue/answer
[NO REPLY NEEDED]
(just got back to pdp) (see message at the end)
I recorded a sample setup, however the very step of
.projects[0] (new) is not recordable from the GUI
since it is the step required before starting the
.scripts[0] process.
So I inserted the following to the .css file and it
works! (first line)
.projects->New(1, Project);
===
1 is the error (without the line above)
2 is the script.css file (without the line above)
=== 1 ====
apiszcz@s20:/export/home/apiszcz/pdpw_4 % bp++
bp++> source "st.css"
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks->New(1, Network);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers->New(3, Layer);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[0].geom = "{x=0: y=1: z=1: }";
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[0].UpdateAfterEdit();
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[0].geom = "{x=0: y=1: z=1: }";
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[0].UpdateAfterEdit();
Index out of range: 0 for type: Project_MGroup
>1 Layer* ths = .projects[0].networks[0].layers[0];
Index out of range: 0 for type: Project_MGroup
>1 Layer* ths = .projects[0].networks[0].layers[1];
Index out of range: 0 for type: Project_MGroup
>1 Layer* ths = .projects[0].networks[0].layers[2];
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[2].units->New(1, BpUnit);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[1].units->New(2, BpUnit);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[0].units->New(2, BpUnit);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[1].projections.New(1);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[1].projections[0].from_type =
Projection::CUSTOM;
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[1].projections[0].from =
.projects[0].networks[0].layers[0];
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[2].projections.New(1);
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[2].projections[0].from_type =
Projection::CUSTOM;
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].layers[2].projections[0].from =
.projects[0].networks[0].layers[1];
Index out of range: 0 for type: Project_MGroup
>1 .projects[0].networks[0].Connect();
bp++>
==== 2 ====
apiszcz@s20:/export/home/apiszcz/pdpw_7 % more st.css
.projects[0].networks->New(1, Network);
.projects[0].networks[0].layers->New(3, Layer);
.projects[0].networks[0].layers[0].geom = "{x=0: y=1: z=1: }";
.projects[0].networks[0].layers[0].UpdateAfterEdit();
.projects[0].networks[0].layers[0].geom = "{x=0: y=1: z=1: }";
.projects[0].networks[0].layers[0].UpdateAfterEdit();
{ Layer* ths = .projects[0].networks[0].layers[0];
ths->n_units = "2";
}
{ Layer* ths = .projects[0].networks[0].layers[1];
ths->n_units = "2";
}
{ Layer* ths = .projects[0].networks[0].layers[2];
ths->n_units = "1";
}
.projects[0].networks[0].layers[2].units->New(1, BpUnit);
.projects[0].networks[0].layers[1].units->New(2, BpUnit);
.projects[0].networks[0].layers[0].units->New(2, BpUnit);
.projects[0].networks[0].layers[1].projections.New(1);
.projects[0].networks[0].layers[1].projections[0].from_type =
Projection::CUSTOM
;
.projects[0].networks[0].layers[1].projections[0].from =
.projects[0].networks[0
].layers[0];
.projects[0].networks[0].layers[2].projections.New(1);
.projects[0].networks[0].layers[2].projections[0].from_type =
Projection::CUSTOM
;
.projects[0].networks[0].layers[2].projections[0].from =
.projects[0].networks[0
].layers[1];
.projects[0].networks[0].Connect();
On Sun, 1 Oct 2000, Randall C. O'Reilly wrote:
> Date: Sun, 1 Oct 2000 10:29:26 -0600
> From: Randall C. O'Reilly <oreilly@grey.colorado.edu>
> To: apiszcz@mitre.org
> Cc: PDP-DISCUSS@psych.colorado.edu
> Subject: Re: PDP++ css define/train/test example help needed
>
> apiszcz@mitre.org writes:
> > 1] css (ONLY) no GUI,
> > define network description, 3 layers, units, connections
> > stop criteria, learning rate, etc.
>
> If you follow the tutorial in the manual and record the script, then
> you'll have script code for setting up the network. you just need to
> stick in appropriate variables, etc.
>
> > 2] train network based on an input file of events
> > (callable from the command line with training options)
>
> check out css/include/startup.css for this code
>
> > 3] save system with weights
>
> add a SaveNetProc or SaveWeightsProc in the final_procs of your
> training process hierarchy
>
> > 4] present test patterns can get result value(s)
> > from output layer.
>
> setup a monitor stat.
> - Randy
>
>
- ___________.___________________.________
- < Al Piszcz | apiszcz@mitre.org | MITRE >