<gh_stars>0
import keras.metrics


def top_1_categorical_error(y_true, y_pred):
    return 1.0 - keras.metrics.top_k_categorical_accuracy(y_true, y_pred, 1)


def top_5_categorical_error(y_true, y_pred):
    return 1.0 - keras.metrics.top_k_categorical_accuracy(y_true, y_pred, 5)

import keras.metrics


def top_1_categorical_error(y_true, y_pred):
    return 1.0 - keras.metrics.top_k_categorical_accuracy(y_true, y_pred, 1)


def top_5_categorical_error(y_true, y_pred):
    return 1.0 - keras.metrics.top_k_categorical_accuracy(y_true, y_pred, 5)