-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Add custom metrics document #2799
Conversation
|
||
在上面的示例中,`CustomMetric` 是 `BaseMetric` 的子类。它有三个方法:`process`,`compute_metrics` 和 `evaluate`。 | ||
|
||
- `process()` 处理一批数据样本和预测。处理后的结果存储在 `self.results` 中,将在处理所有数据样本后用于计算指标。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `process()` 处理一批数据样本和预测。处理后的结果存储在 `self.results` 中,将在处理所有数据样本后用于计算指标。 | |
- `process()` 处理一批数据样本和预测。处理后的结果需要显示地传给 `self.results` ,将在处理所有数据样本后用于计算指标。更多细节请参考 [MMEngine 文档](https://github.com/open-mmlab/mmengine/blob/main/docs/zh_cn/design/evaluation.md) |
""" | ||
The metric first processes each batch of data_samples and predictions, | ||
and appends the processed results to the results list. Then it | ||
collects all results together from all ranks if distributed training | ||
is used. Finally, it computes the metrics of the entire dataset. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" | |
The metric first processes each batch of data_samples and predictions, | |
and appends the processed results to the results list. Then it | |
collects all results together from all ranks if distributed training | |
is used. Finally, it computes the metrics of the entire dataset. | |
""" | |
pass |
might not need the docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it needs a brief introduction to the evaluation process.
""" | ||
The metric first processes each batch of data_samples and predictions, | ||
and appends the processed results to the results list. Then it | ||
collects all results together from all ranks if distributed training | ||
is used. Finally, it computes the metrics of the entire dataset. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as en doc
Co-authored-by: CSH <[email protected]>
Motivation
As title
Modification