Skip to content

Commit

Permalink
final pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
namera9 committed Apr 7, 2024
1 parent 1e1dca5 commit fb16a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sasctl/pzmm/write_score_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def write_score_wrapper_file_input(cls,
model_load: str,
model_name_with_file_extension: str,
score_function_body: str,
score_function_input_parameters: str,
output_variables: List[str],
):
"""
Expand Down Expand Up @@ -107,7 +108,7 @@ def write_score_wrapper_file_input(cls,
cls.score_wrapper += f"{model_load}\n\n"

# define the generic score function, and append the score_function_body to evaluate the model.
cls.score_wrapper += f"def score(input_data):\n"
cls.score_wrapper += f"def score({score_function_input_parameters}):\n"
cls.score_wrapper += '\t"'
cls.score_wrapper += "Output Variables: " + ", ".join(output_variables) # Join output variables with comma
cls.score_wrapper += '"\n'
Expand Down Expand Up @@ -163,4 +164,3 @@ def validate_score_wrapper_syntax(cls, code: str) -> bool:
return False



0 comments on commit fb16a1e

Please sign in to comment.