Skip to content

Commit

Permalink
put in logic if the model doesn't exist for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Oct 31, 2023
1 parent 9b3c153 commit f3a2622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/inference_on_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ENDPOINT_NAME = "stab-regression-end"
ENDPOINT_NAME = "solubility-test-regression-end"
ENDPOINT_NAME = "wine-classification-end"
ENDPOINT_NAME = "abalone-regression-end-rt"
ENDPOINT_NAME = "abalone-regression-end"

# These should be filled in
DATA_NAME = "stab_phase_2_features(20)"
Expand Down
5 changes: 4 additions & 1 deletion src/sageworks/artifacts/endpoints/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ def model_details(self) -> dict:
return {}
else:
model = Model(self.model_name)
return model.details()
if model.exists():
return model.details()
else:
return {}

def model_type(self) -> str:
"""Return the type of model used in this Endpoint"""
Expand Down

0 comments on commit f3a2622

Please sign in to comment.