Beispiel #1
0
        public static BasicNetwork loadNetwork(byte[] networkBytes)
        {
            FilePersistence location = new FilePersistence();

            location.AddStreamData(networkBytes);
            EncogPersistedCollection collection    = new EncogPersistedCollection(location, FileMode.Open);
            BasicNetwork             returnNetwork = (BasicNetwork)collection.Find("neuralNet");

            //Make sure we have the flattended network cached.
            returnNetwork.Structure.FinalizeStructure();

            return(returnNetwork);
        }