-
Notifications
You must be signed in to change notification settings - Fork 94
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
在 SML 中实现 metric 算子(分类) #383
Comments
tarantula-leo Give it to me. |
针对二分类:
|
Hi,实现基本ok,有几个细节可以斟酌一下
BTW,SML里已经有metric目录,可以直接把代码增加到classification.py里 |
以下三个多分类都需要修改代码,使用average = None么?
|
可以参考sklearn,留一个average的参数,你可以只实现None或者其他方式。 |
classification:
test:
|
hi,大体上都是OK的,有一些可以优化的:
BTW,可以考虑直接发PR,这样我可以直接在对应行comment~ Thanks |
第三条,对于二分类,不使用transform,用pos_label表明正样本数值,labels参数仅在多分类中生效。 |
一般pos_label只会用在二分类;labels只用在多分类; 如果有其他设计也可以抛出来讨论一下~ |
我上面说得有些问题,二分类是不用labels,不是不用transform,对于-1,1这样的标记,只要指定正样本标记为1,且average为binary,就会transform成0,1。not_transform这个你是想在什么场景下使用? |
二分类场景: 为了区分这两种情况,可能需要用户指定 |
# Pull Request ## What problem does this PR solve? Issue Number: Fixed #383 ## Possible side effects? - Performance: support multi-classification - Backward compatibility:
任务介绍
详细要求
ⅰ. f1_score
ⅱ. precision_score
ⅲ. recall_score
ⅳ. accuracy_score
具体功能可参考sklearn
若有其他建议实现的算法,也可在本 ISSUE 下回复
能力要求
操作说明
认领说明
The text was updated successfully, but these errors were encountered: