-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6ebcd6
commit 5189b08
Showing
6 changed files
with
153 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from sageworks.api.endpoint import Endpoint | ||
from pprint import pprint | ||
|
||
# Grab an existing Endpoint and print out it's details | ||
endpoint = Endpoint("abalone-regression-end") | ||
pprint(endpoint.details()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
from sageworks.api.model import Model | ||
from sageworks.api.endpoint import Endpoint | ||
import pandas as pd | ||
|
||
# Grab the abalone-regression Model | ||
model = Model("abalone-regression") | ||
pd.set_option("display.max_columns", None) | ||
pd.set_option("display.max_rows", None) | ||
pd.set_option("display.width", 1000) | ||
|
||
# Perform a health check on the model | ||
# Note: The health_check() method returns 'issues' if there are any | ||
# problems, so if there are no issues, the model is healthy | ||
health_issues = model.health_check() | ||
if not health_issues: | ||
print("Model is Healthy") | ||
else: | ||
print("Model has issues") | ||
print(health_issues) | ||
# Grab an existing Endpoint | ||
endpoint = Endpoint("abalone-regression-end") | ||
|
||
# Get the model metrics and regression predictions | ||
print(model.model_metrics()) | ||
print(model.regression_predictions()) | ||
# SageWorks tracks both Model performance and Endpoint Metrics | ||
model_metrics = endpoint.details()["model_metrics"] | ||
endpoint_metrics = endpoint.endpoint_metrics() | ||
print(model_metrics) | ||
print(endpoint_metrics.iloc[:, 1:6]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters