Skip to content

Commit

Permalink
update to latest emergent with path rendering, rename Desc -> Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Aug 26, 2024
1 parent f8cb0b0 commit 73d4736
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ch2/detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func (ss *Sim) ConfigNet(net *leabra.Network) {
net.SetRandSeed(ss.RandSeeds[0]) // init new separate random seed, using run = 0

inp := net.AddLayer2D("Input", 7, 5, leabra.InputLayer)
inp.Info = "Input represents the visual appearance of different digits."
inp.Doc = "Input represents the visual appearance of different digits."
recv := net.AddLayer2D("RecvNeuron", 1, 1, leabra.SuperLayer)
recv.Info = "RecvNeuron represents an individual neuron with synaptic weights tuned to detect the digit 8."
recv.Doc = "RecvNeuron represents an individual neuron with synaptic weights tuned to detect the digit 8."

net.ConnectLayers(inp, recv, paths.NewFull(), leabra.ForwardPath)

Expand Down
8 changes: 4 additions & 4 deletions ch3/faces/faces.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ func (ss *Sim) ConfigNet(net *leabra.Network) {
net.SetRandSeed(ss.RandSeeds[0]) // init new separate random seed, using run = 0

inp := net.AddLayer2D("Input", 16, 16, leabra.InputLayer)
inp.Info = "Input represents visual image inputs in a simple cartoon form."
inp.Doc = "Input represents visual image inputs in a simple cartoon form."
emo := net.AddLayer2D("Emotion", 1, 2, leabra.CompareLayer)
emo.Info = "Emotion has synaptic weights that detect the facial features in the eyes and mouth that specifically reflect emotions."
emo.Doc = "Emotion has synaptic weights that detect the facial features in the eyes and mouth that specifically reflect emotions."
gend := net.AddLayer2D("Gender", 1, 2, leabra.CompareLayer)
gend.Info = "Gender has synaptic weights that detect the hair and face features that discriminate male vs female gender in this simplified cartoon set of inputs."
gend.Doc = "Gender has synaptic weights that detect the hair and face features that discriminate male vs female gender in this simplified cartoon set of inputs."
iden := net.AddLayer2D("Identity", 1, 10, leabra.CompareLayer)
iden.Info = "Identity detects individual faces."
iden.Doc = "Identity detects individual faces."

full := paths.NewFull()

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.22

require (
cogentcore.org/core v0.3.3-0.20240825182959-fe4840922a21
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240825183141-a2d399e6a078
github.com/emer/leabra/v2 v2.0.0-20240825183321-e6490fc351ea
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240826102207-14a576d51386
github.com/emer/leabra/v2 v2.0.0-20240826103107-b5138f8099e6
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240825183141-a2d399e6a078 h1:st8x8pdpv+ToSYNhWgI+L970lJXWCs4tlSDvV+oNzZg=
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240825183141-a2d399e6a078/go.mod h1:jXS8jqUgcroXlX4510+FXsgb6osLiDWRJLDCD2gpzow=
github.com/emer/leabra/v2 v2.0.0-20240825183321-e6490fc351ea h1:6jL9+POPBDrZaNUWgsXH52SMndHa3Oqamm7SQe38TLw=
github.com/emer/leabra/v2 v2.0.0-20240825183321-e6490fc351ea/go.mod h1:e6LhOxqBouIpUNS499krl2NBMBicqGO7iLAQhdL7AMc=
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240826102207-14a576d51386 h1:tFgKfRHzssTtHVvz4IUaBXf1Cqmmb5s1/bPb0HY0sLw=
github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240826102207-14a576d51386/go.mod h1:jXS8jqUgcroXlX4510+FXsgb6osLiDWRJLDCD2gpzow=
github.com/emer/leabra/v2 v2.0.0-20240826103107-b5138f8099e6 h1:ZD0FbDxJXUGrzDrFfIEZEJ4O+EaVKn2zj37WUYzrPjo=
github.com/emer/leabra/v2 v2.0.0-20240826103107-b5138f8099e6/go.mod h1:QzE9I2NYYl5M8d0tjrZymUTb2VT1EFZXZ+xDHqkv6yA=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
Expand Down

0 comments on commit 73d4736

Please sign in to comment.