118f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
218f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng#
318f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# Licensed under the Apache License, Version 2.0 (the "License");
418f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# you may not use this file except in compliance with the License.
518f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# You may obtain a copy of the License at
618f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng#
718f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng#     http://www.apache.org/licenses/LICENSE-2.0
818f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng#
918f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# Unless required by applicable law or agreed to in writing, software
1018f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# distributed under the License is distributed on an "AS IS" BASIS,
1118f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1218f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# See the License for the specific language governing permissions and
1318f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# limitations under the License.
1418f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# ==============================================================================
1518f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng"""Keras built-in metrics functions."""
1618f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng
1718f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom __future__ import absolute_import
1818f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom __future__ import division
1918f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom __future__ import print_function
2018f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng
2118f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# Metrics functions.
2218f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import binary_accuracy
2318f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import binary_crossentropy
2418f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import categorical_accuracy
2518f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import categorical_crossentropy
2618f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import cosine_proximity
2718f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import hinge
2818f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import kullback_leibler_divergence
2918f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import mean_absolute_error
3018f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import mean_absolute_percentage_error
3118f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import mean_squared_error
3218f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import mean_squared_logarithmic_error
3318f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import poisson
3418f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import sparse_categorical_crossentropy
3518f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import sparse_top_k_categorical_accuracy
3618f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import squared_hinge
3718f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import top_k_categorical_accuracy
3818f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng
3918f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# Auxiliary utils.
4018f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng# pylint: disable=g-bad-import-order
4118f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import deserialize
4218f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import serialize
4318f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengfrom tensorflow.python.keras._impl.keras.metrics import get
4418f36927160d05b941c056f10dc7f9aecaa05e23Yifei Feng
4518f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengdel absolute_import
4618f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengdel division
4718f36927160d05b941c056f10dc7f9aecaa05e23Yifei Fengdel print_function
48