def evaluate_error(model, test_gen, no_test_sam):
    """
    DESCRIPTION: Evaluate the network performance
    INPUT: The trained model, the test set generator,
    number of testing images
    OUTPUT: List of statistics about the performance of the model
    """
    stats = model.evaluate_generator(test_gen, no_test_sam // 256)
    return stats