Example #1
0
 def SetParamsSet(ss, setNm, sheet, setMsg):
     """
     SetParamsSet sets the params for given params.Set name.
     If sheet is empty, then it applies all avail sheets (e.g., Network, Sim)
     otherwise just the named sheet
     if setMsg = true then we output a message for each param that was set.
     """
     pset = ss.Params.SetByNameTry(setNm)
     if sheet == "" or sheet == "Network":
         if "Network" in pset.Sheets:
             netp = pset.SheetByNameTry("Network")
             ss.Net.ApplyParams(netp, setMsg)
     if sheet == "" or sheet == "Sim":
         if "Sim" in pset.Sheets:
             simp= pset.SheetByNameTry("Sim")
             pyparams.ApplyParams(ss, simp, setMsg)
Example #2
0
 def SetParamsSet(ss, setNm, sheet, setMsg):
     """
     SetParamsSet sets the params for given params.Set name.
     If sheet is empty, then it applies all avail sheets (e.g., Network, Sim)
     otherwise just the named sheet
     if setMsg = true then we output a message for each param that was set.
     """
     pset = ss.Params.SetByNameTry(setNm)
     if sheet == "" or sheet == "Network":
         if "Network" in pset.Sheets:
             netp = pset.SheetByNameTry("Network")
             ss.Net.ApplyParams(netp, setMsg)
         hid = leabra.Layer(ss.Net.LayerByName("Hidden"))
         fmhid = leabra.Prjn(hid.RcvPrjns.SendName("Hidden"))
         fmhid.WtInit.Mean = ss.RecurrentWt
     if sheet == "" or sheet == "Sim":
         if "Sim" in pset.Sheets:
             simp = pset.SheetByNameTry("Sim")
             pyparams.ApplyParams(ss, simp, setMsg)
             simp.Apply(ss, setMsg)