text: #!/usr/bin/env python3
  
  # Project: VUT FIT SUI Project - Dice Wars
  # Authors:
  #   - Josef Kolář      <xkolar71@stud.fit.vutbr.cz>
  #   - Dominik Harmim   <xharmi00@stud.fit.vutbr.cz>
  #   - Petr Kapoun      <xkapou04@stud.fit.vutbr.cz>
  #   - Jindřich Šesták  <xsesta05@stud.fit.vutbr.cz>
  # Year: 2020
  # Description: Computes an accuracy of the trained neural network model.
  
  import os
  
  import numpy as np
  import tensorflow as tf
  
  PLAYERS_COUNT = 4
  
  DATA_DIR = os.path.join(os.path.dirname(__file__), '../../sui-learning-data-mixed')
  
  TEST_DATA = np.load(os.path.join(DATA_DIR, 'data-test.npy'))
  
  TEST_DATA_COUNT = TEST_DATA.shape[0]
  
  model = tf.keras.models.load_model(os.path.join(os.path.dirname(__file__), 'model.h5'))
  
  predicted = model.predict(TEST_DATA[:, 1:])
  
  print(np.sum(np.argmax(predicted, axis=1) == TEST_DATA[:, 0]) / TEST_DATA_COUNT)
  