File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -351,17 +351,17 @@ def write_model_properties_json(
351
351
)
352
352
353
353
if not target_values :
354
- model_function = "Prediction"
354
+ model_function = model_function if model_function else "Prediction"
355
355
target_level = "INTERVAL"
356
356
target_event = ""
357
357
event_prob_var = ""
358
358
elif isinstance (target_values , list ) and len (target_values ) == 2 :
359
- model_function = "Classification"
359
+ model_function = model_function if model_function else "Classification"
360
360
target_level = "BINARY"
361
361
target_event = str (target_values [0 ])
362
362
event_prob_var = f"P_{ target_values [0 ]} "
363
363
elif isinstance (target_values , list ) and len (target_values ) > 2 :
364
- model_function = "Classification"
364
+ model_function = model_function if model_function else "Classification"
365
365
target_level = "NOMINAL"
366
366
target_event = ""
367
367
event_prob_var = ""
You can’t perform that action at this time.
0 commit comments