Skip to content

Commit cf4d584

Browse files
committed
updated casing in model properties so they are correctly read
1 parent e7ff075 commit cf4d584

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sasctl/pzmm/write_json_files.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,17 @@ def write_model_properties_json(
355355
)
356356

357357
if not target_values:
358-
model_function = model_function if model_function else "Prediction"
358+
model_function = model_function if model_function else "prediction"
359359
target_level = "Interval"
360360
target_event = ""
361361
event_prob_var = ""
362362
elif isinstance(target_values, list) and len(target_values) == 2:
363-
model_function = model_function if model_function else "Classification"
363+
model_function = model_function if model_function else "classification"
364364
target_level = "Binary"
365365
target_event = str(target_values[0])
366366
event_prob_var = f"P_{target_values[0]}"
367367
elif isinstance(target_values, list) and len(target_values) > 2:
368-
model_function = model_function if model_function else "Classification"
368+
model_function = model_function if model_function else "classification"
369369
target_level = "Nominal"
370370
target_event = ""
371371
event_prob_var = ""
@@ -2410,7 +2410,7 @@ def upload_training_data(
24102410
"either delete/rename the old table or give a new name to the current table."
24112411
)
24122412

2413-
return server + "/" + caslib + "/" + train_data_name
2413+
return server + "/" + caslib + "/" + train_data_name.upper()
24142414

24152415
@staticmethod
24162416
def generate_outcome_average(
@@ -2730,7 +2730,7 @@ def generate_variable_importance(
27302730
@classmethod
27312731
def generate_misc(cls, model_files: Union[str, Path, dict]):
27322732
"""
2733-
Generates the dmcas_relativeimportance.json file, which is used to determine variable importance
2733+
Generates the dmcas_misc.json file, which is used to determine variable importance
27342734
27352735
Parameters
27362736
----------

0 commit comments

Comments
 (0)