Exemplo n.º 1
0
 public void LoadFromFile()
 {
     if (File.Exists(annCfg))
     {
         logger.InfoFormat("Read neural network configuration from file: {0}", annCfg);
         var _annComp = (AnnBuild)ObjectXMLSerializer.Load(annComp, annCfg);
         annComp.SetData(_annComp);
     }
     if (File.Exists(backPropCfg))
     {
         logger.InfoFormat("Read back-propagation training configuration from file: {0}", backPropCfg);
         var _backProp = (BackPropagation)ObjectXMLSerializer.Load(backPropComp, backPropCfg);
         backPropComp.SetData(_backProp);
     }
     if (File.Exists(rPropCfg))
     {
         logger.InfoFormat("Read resilient-propagation training configuration from file: {0}", rPropCfg);
         var _rprop = (ResilientPropagation)ObjectXMLSerializer.Load(rPropComp, rPropCfg);
         rPropComp.SetData(_rprop);
     }
 }