def metric_improved(metrics, best_metric, metric_type):
    """ Function that returns True if the current metric is better than the best so far; Else False """
    if metric_type == "val_f1" or metric_type == "val_accuracies":
        return metrics[metric_type][-1] >= best_metric
    else:
        return metrics[metric_type][-1] <= best_metric