Exemplo n.º 1
0
    bool trainSom()
    {
        currentTime += Time.deltaTime;
        if (currentTime > drawTime)
        {
            currentTime = 0f;
            if (hoodFixer > epochs / (startingHood + 1))
            {
                hoodFixer = 0;
                hood--;
            }
            hoodFixer++;

            som.update(hood);
            som.drawState(drawTime);
            trainCounter++;
        }
        if (trainCounter >= epochs)
        {
            som.calculateBoisVisitOrder();
            return(true);
        }
        return(false);
    }