public static NNET getNNET(NNETMODEL name) { if (!nnets.Keys.Contains(name)) { NNET nnet=new NNET(name); nnets.Add(name,nnet); } return nnets[name]; }
protected NNET(NNETMODEL name) { init(name); }
public void init(NNETMODEL name) { Serializer serializer=new Serializer(); switch (name) { case NNETMODEL.vges_nb: nnetObj = serializer.Deserialize(nnet.vges_nb); break; } Hashtable nnetArr=nnetObj as Hashtable; l1c = this.readListListDouble(nnetArr["l1c"]); l2c = this.readListListDouble(nnetArr["l2c"]); l1w = this.readListListDouble(nnetArr["l1w"]); l2w = this.readListListDouble(nnetArr["l2w"]); l1b = this.readListDouble(nnetArr["l1b"]); l2b = this.readListDouble(nnetArr["l2b"]); }