Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix linting
Browse files Browse the repository at this point in the history
ethan-cartwright committed Dec 22, 2023
1 parent 0a481cb commit 5bec60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-classify/src/datahub_classify/infotype_helper.py
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ def compute_overall_confidence(debug_info: DebugInfo, config: Dict[str, Dict]) -
}
confidence_level = 0
for key, value in vars(debug_info).items():
if value and type(value) != str:
if value and not isinstance(value, str):
confidence_level += prediction_factors_weights[key] * value
confidence_level = np.round(confidence_level, 2)
return confidence_level

0 comments on commit 5bec60a

Please sign in to comment.