From 3e481f85b9ea0b3ed3407a8c50df4025b914975c Mon Sep 17 00:00:00 2001 From: wangshuide2020 <7511764+wangshuide2020@user.noreply.gitee.com> Date: Sat, 26 Dec 2020 09:18:05 +0800 Subject: [PATCH] update the documentation of F1 operator. --- mindspore/nn/metrics/fbeta.py | 2 +- mindspore/ops/operations/nn_ops.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mindspore/nn/metrics/fbeta.py b/mindspore/nn/metrics/fbeta.py index 4f3ab53dee..1b4ddd8a77 100755 --- a/mindspore/nn/metrics/fbeta.py +++ b/mindspore/nn/metrics/fbeta.py @@ -122,7 +122,7 @@ class Fbeta(Metric): class F1(Fbeta): r""" Calculates the F1 score. F1 is a special case of Fbeta when beta is 1. - Refer to class :class: `mindspore.nn.Fbeta` for more details. + Refer to class :class:`mindspore.nn.Fbeta` for more details. .. math:: F_1=\frac{2\cdot true\_positive}{2\cdot true\_positive + false\_negative + false\_positive} diff --git a/mindspore/ops/operations/nn_ops.py b/mindspore/ops/operations/nn_ops.py index 468dade5f9..45a89023c9 100644 --- a/mindspore/ops/operations/nn_ops.py +++ b/mindspore/ops/operations/nn_ops.py @@ -5765,10 +5765,13 @@ class ApplyFtrl(PrimitiveWithInfer): Outputs: There are three outputs for Ascend environment. + - **var** (Tensor) - represents the updated `var`. - **accum** (Tensor) - represents the updated `accum`. - **linear** (Tensor) - represents the updated `linear`. + There is only one output for GPU environment. + - **var** (Tensor) - This value is alwalys zero and the input parameters has been updated in-place. Supported Platforms: