static size_t getColorsPerTile(const NeuralNetwork& network) { size_t inputs = network.getInputNeuronsConnectedToThisOutput(0).size(); return inputs % 3 == 0 ? 3 : 1; }
static size_t getYPixelsPerTile(const NeuralNetwork& network) { size_t inputs = network.getInputNeuronsConnectedToThisOutput(0).size(); return sqrtRoundUp(inputs / getColorsPerTile(network)); }