Fix: rank feature score should be greater than 0. (#8416)
### What problem does this PR solve? #8414 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
794a4102c2
commit
83e23f1e8a
1 changed files with 2 additions and 1 deletions
|
|
@ -427,7 +427,8 @@ Output:
|
|||
res = {}
|
||||
for k, v in obj.items():
|
||||
try:
|
||||
res[str(k)] = int(v)
|
||||
if int(v) > 0:
|
||||
res[str(k)] = int(v)
|
||||
except Exception:
|
||||
pass
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue