Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
namera9 committed Apr 12, 2024
1 parent ac912a7 commit d59a7ae
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sasctl/pzmm/import_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,24 @@ def import_model(
)
if cls.notebook_output:
print(f"All model files were zipped to {Path(model_files)}.")
project_response = mr.get_project(project)
project = project_exists(
project,
project_response,
target_values,
model_files,
overwrite_project_properties,
)

# Check if model with same name already exists in project.
model_exists(
project, model_prefix, overwrite_model, version_name=project_version
)

model = mr.import_model_from_zip(
model_prefix, project, zip_io_file, version=project_version
)
return model, model_files

# Import model without generating score code (SAS Viya version invariant)
if input_data is None or not predict_method or not score_metrics:
Expand Down

0 comments on commit d59a7ae

Please sign in to comment.