关于 Keras 入门指南 开发者指南 代码示例 Keras 3 API 文档 Keras 2 API 文档 模型 API 层 API 回调函数 API 优化器 指标 损失函数 概率损失函数 回归损失函数 用于“最大间隔”分类的 Hinge 损失函数 数据加载 内置小型数据集 Keras 应用 混合精度 实用工具 KerasTuner:超参数调整 KerasHub:预训练模型
► Keras 2 API 文档 / 损失函数

损失函数

概率损失函数

  • BinaryCrossentropy 类
  • CategoricalCrossentropy 类
  • SparseCategoricalCrossentropy 类
  • Poisson 类
  • binary_crossentropy 函数
  • categorical_crossentropy 函数
  • sparse_categorical_crossentropy 函数
  • poisson 函数
  • KLDivergence 类
  • kl_divergence 函数

回归损失函数

  • MeanSquaredError 类
  • MeanAbsoluteError 类
  • MeanAbsolutePercentageError 类
  • MeanSquaredLogarithmicError 类
  • CosineSimilarity 类
  • mean_squared_error 函数
  • mean_absolute_error 函数
  • mean_absolute_percentage_error 函数
  • mean_squared_logarithmic_error 函数
  • cosine_similarity 函数
  • Huber 类
  • huber 函数
  • LogCosh 类
  • log_cosh 函数

用于“最大间隔”分类的 Hinge 损失函数

  • Hinge 类
  • SquaredHinge 类
  • CategoricalHinge 类
  • hinge 函数
  • squared_hinge 函数
  • categorical_hinge 函数
损失函数
概率损失函数
回归损失函数
用于“最大间隔”分类的 Hinge 损失函数
条款 | 隐私权政策