1f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# Copyright 2016 The TensorFlow Authors. All Rights Reserved. 2f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# 3f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# Licensed under the Apache License, Version 2.0 (the "License"); 4f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# you may not use this file except in compliance with the License. 5f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# You may obtain a copy of the License at 6f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# 7f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# http://www.apache.org/licenses/LICENSE-2.0 8f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# 9f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# Unless required by applicable law or agreed to in writing, software 10f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# distributed under the License is distributed on an "AS IS" BASIS, 11f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# See the License for the specific language governing permissions and 13f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# limitations under the License. 14f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# ============================================================================== 15f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet"""Keras built-in metrics functions.""" 16f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet 17f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletfrom __future__ import absolute_import 18f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletfrom __future__ import division 19f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletfrom __future__ import print_function 20f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet 21f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# 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 38f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet 39f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# Auxiliary utils. 40f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet# 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 44f49f801276154d0f693c5d57db6977a7eb32f017Francois Chollet 45f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletdel absolute_import 46f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletdel division 47f49f801276154d0f693c5d57db6977a7eb32f017Francois Cholletdel print_function 48