Spaces:
Sleeping
Sleeping
Update src/webApp.py
Browse files- src/webApp.py +2 -2
src/webApp.py
CHANGED
|
@@ -396,7 +396,7 @@ def interpret_shap_features(shap_df):
|
|
| 396 |
)
|
| 397 |
elif feature == "unverified_ratio":
|
| 398 |
interpretations.append(
|
| 399 |
-
f"• **{feature}** ({abs(impact:.4f}): {strength} {direction}. "
|
| 400 |
"Unverified purchases are more commonly linked to suspicious reviewing "
|
| 401 |
"behaviour where the reviewer may not have actually bought the product."
|
| 402 |
)
|
|
@@ -408,7 +408,7 @@ def interpret_shap_features(shap_df):
|
|
| 408 |
)
|
| 409 |
elif feature == "very_short_review":
|
| 410 |
interpretations.append(
|
| 411 |
-
f"• **{feature}** ({abs(impact:.4f}): {strength} {direction}. "
|
| 412 |
"Very short reviews lack the detail expected from genuine buyers and are "
|
| 413 |
"commonly associated with bulk or incentivised reviewing."
|
| 414 |
)
|
|
|
|
| 396 |
)
|
| 397 |
elif feature == "unverified_ratio":
|
| 398 |
interpretations.append(
|
| 399 |
+
f"• **{feature}** ({abs(impact):.4f}): {strength} {direction}. "
|
| 400 |
"Unverified purchases are more commonly linked to suspicious reviewing "
|
| 401 |
"behaviour where the reviewer may not have actually bought the product."
|
| 402 |
)
|
|
|
|
| 408 |
)
|
| 409 |
elif feature == "very_short_review":
|
| 410 |
interpretations.append(
|
| 411 |
+
f"• **{feature}** ({abs(impact):.4f}): {strength} {direction}. "
|
| 412 |
"Very short reviews lack the detail expected from genuine buyers and are "
|
| 413 |
"commonly associated with bulk or incentivised reviewing."
|
| 414 |
)
|