Skip to content

Conversation

@guoshengCS
Copy link
Contributor

resolve #6513

AddOutput("F1-Score",
"(float). The evaluated F1-Score on the given mini-batch.");
AddOutput(
"NumInferChunks",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can NumInferChunks be different with NumLabelChunks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, NumInferChunks can be different withNumLabelChunks since they indicate the number of chunks in inference data and labeled data respectively.

"NumInferChunks",
"(int). The number of chunks in Inference on the given mini-batch.");
AddOutput("NumLabelChunks",
"(int). The number of chunks in Label on the given mini-batch.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type is int64_t

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

precision_val = np.array(outs[1])
recall_val = np.array(outs[2])
f1_score_val = np.array(outs[3])
precision_val = np.array(precision)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我看到evaluator.eval已经return的是np.array了,这里为啥还要加一层?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 参照图像分类示例中的输出,去掉了np.array.

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@guoshengCS guoshengCS merged commit d40d28d into PaddlePaddle:develop Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need ChunkEvaluator for Multi-batches in Fluid

2 participants