You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg="interactions above 1 cannot be a float percentage and need to be an int instead"
1204
-
_log.error(msg)
1205
-
raiseValueError(msg)
1206
-
1207
-
ifn_classes>=Native.Task_MulticlassPlus:
1208
-
warn(
1209
-
"For multiclass we cannot currently visualize pairs and they will be stripped from the global explanations. Set interactions=0 to generate a fully interpretable glassbox model."
1210
-
)
1211
-
1212
-
# at this point interactions will be a positive, nonzero integer
1213
-
elifisinstance(interactions, str):
1214
-
interactions=interactions.strip()
1215
-
1216
-
ifnotinteractions.lower().endswith("x"):
1217
-
raiseValueError(
1218
-
"If passing a string for interactions, it must end in an 'x' character."
1219
-
)
1220
-
1221
-
interactions=interactions[:-1]
1222
-
try:
1223
-
interactions=float(interactions)
1224
-
exceptValueError:
1225
-
raiseValueError(
1226
-
f"'{interactions}' is not a valid floating-point number."
1227
-
)
1228
-
1229
-
ifinteractions<=0.0:
1230
-
ifinteractions==0.0:
1231
-
break
1232
-
msg="interactions cannot be negative"
1233
-
_log.error(msg)
1234
-
raiseValueError(msg)
1235
-
1236
-
ifn_classes>=Native.Task_MulticlassPlus:
1237
-
warn(
1238
-
"For multiclass we cannot currently visualize pairs and they will be stripped from the global explanations. Set interactions=0 to generate a fully interpretable glassbox model."
# at this point interactions will be a positive, nonzero integer
1244
-
eliflen(interactions) ==0:
1245
-
break
1244
+
ifn_classes>=Native.Task_MulticlassPlus:
1245
+
warn(
1246
+
"For multiclass we cannot currently visualize pairs and they will be stripped from the global explanations. Set interactions=0 to generate a fully interpretable glassbox model."
1247
+
)
1246
1248
1247
1249
# at this point we know we will be making a new one, so delete it now
0 commit comments