def show_r2(results):
    data_size = results['data_size']
    test_scores = results['test_scores']
    test_scores_exp = results['test_scores_exp']
    (fig, ax) = plt.subplots(figsize=(8, 4))
    ax.plot(list(map((lambda x: x['r2']), test_scores)), marker='o', label='Log(Exec. time)', color='#777777')
    ax.plot(list(map((lambda x: x['r2']), test_scores_exp)), marker='o', label='Exec. time', color='#111111')
    ax.set_xticks(list(range(data_size.__len__())))
    ax.set_xticklabels(data_size, rotation=60)
    ax.set_ylim((0, 1))
    ax.set_yticks(np.arange(0, 1, 0.1))
    ax.set_xlabel('# Executed Jobs')
    ax.set_ylabel('$R^2$ Score')
    ax.legend()
    return ax
def show_r2(results):
    data_size = results['data_size']
    test_scores = results['test_scores']
    test_scores_exp = results['test_scores_exp']
    (fig, ax) = plt.subplots(figsize=(8, 4))
    ax.plot(list(map((lambda x: x['r2']), test_scores)), marker='o', label='Log(Exec. time)', color='#777777')
    ax.plot(list(map((lambda x: x['r2']), test_scores_exp)), marker='o', label='Exec. time', color='#111111')
    ax.set_xticks(list(range(data_size.__len__())))
    ax.set_xticklabels(data_size, rotation=60)
    ax.set_ylim((0, 1))
    ax.set_yticks(np.arange(0, 1, 0.1))
    ax.set_xlabel('# Executed Jobs')
    ax.set_ylabel('$R^2$ Score')
    ax.legend()
    return ax