Exemplo n.º 1
0
        public TDDM()
        {
            m_GamesTrained         = 0;
            m_LastGamesTrainedSave = 0;

            m_NeuralNetworks    = new NeuralNetwork[2];
            m_NeuralNetworks[0] = new NeuralNetwork(196, 80, 5);
            m_NeuralNetworks[1] = new NeuralNetwork(196, 80, 5);
            m_NeuralNetworks[0].PutWeights(ContactWeights.GetWeights());
            m_NeuralNetworks[1].PutWeights(RaceWeights.GetWeights());

            Load(SAVE_FILE);
        }
Exemplo n.º 2
0
        public TD2DM()
        {
            m_OwnBoardView = new int[26];
            m_OppBoardView = new int[26];

            m_ContactNetwork       = new NeuralNetwork(CONTACT_INPUT_COUNT, CONTACT_HIDDEN_COUNT, 5);
            m_RaceNetwork          = new NeuralNetwork(RACE_INPUT_COUNT, RACE_HIDDEN_COUNT, 5);
            m_GamesTrained         = 0;
            m_LastGamesTrainedSave = 0;

            m_Output       = new float[5];
            m_ContactInput = new float[CONTACT_INPUT_COUNT];
            m_RaceInput    = new float[RACE_INPUT_COUNT];

            m_ContactNetwork.PutWeights(ContactWeights.GetWeights());
            m_RaceNetwork.PutWeights(RaceWeights.GetWeights());

            Load(SAVE_FILE);
        }