Skip to content

Commit 280e455

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents b3f2168 + 4ad1970 commit 280e455

File tree

2 files changed

+127
-3
lines changed

2 files changed

+127
-3
lines changed

examples/README.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
2+
Examples
3+
========
4+
5+
- [Register a SAS classification model](#register-a-sas-classification-model)
6+
- [Register a SAS regression model](#register-a-sas-regression-model)
7+
- [Register a SAS deep learning model](#register-a-sas-deep-learning-model)
8+
9+
- [Register a scikit-learn classification model](#register-a-scikit-learn-classification-model)
10+
- [Register a scikit-learn regression model](#register-a-scikit-learn-regression-model)
11+
12+
- [Full model lifecycle](#full-model-lifecycle)
13+
- [Register a custom model](#register-a-custom-model)
14+
- [Register models with model metrics](#register-models-with-model-metrics)
15+
- [Modeling with Python & SAS AutoML](#modeling-with-python--sas-automl)
16+
- [Making direct REST API calls](#making-direct-rest-api-calls)
17+
18+
---
19+
20+
21+
Register a SAS classification model
22+
------------------------------------
23+
Filename: [register_sas_classification_model.py](register_sas_classification_model.py)
24+
25+
Level: Beginner
26+
27+
Registers a classification model in SAS Model Manager that was created from a SAS algorithm with [SWAT](https://github.com/sassoftware/python-swat).
28+
29+
30+
31+
Register a SAS regression model
32+
-------------------------------
33+
Filename: [register_sas_regression_model.py](register_sas_regression_model.py)
34+
35+
Level: Beginner
36+
37+
Registers a regression model in SAS Model Manager that was created from a SAS algorithm with [SWAT](https://github.com/sassoftware/python-swat).
38+
39+
40+
41+
Register a SAS deep learning model
42+
----------------------------------
43+
Filename: [register_sas_dlpy_model.py](register_sas_dlpy_model.py)
44+
45+
Level: Beginner
46+
47+
Creates a SAS deep learning model using [dlpy](https://github.com/sassoftware/python-dlpy) and registers the model in SAS Model Manager.
48+
49+
50+
51+
Register a scikit-learn classification model
52+
--------------------------------------------
53+
Filename: [register_scikit_classification_model.py](register_scikit_classification_model.py)
54+
55+
Level: Beginner
56+
57+
Registers a classification model in SAS Model Manager that was created from a Python algorithm with [scikit-learn](https://github.com/scikit-learn/scikit-learn).
58+
59+
60+
61+
Register a scikit-learn regression model
62+
----------------------------------------
63+
Filename: [register_scikit_regression_model.py](register_scikit_regression_model.py)
64+
65+
Level: Beginner
66+
67+
Registers a regression model in SAS Model Manager that was created from a Python algorithm with [scikit-learn](https://github.com/scikit-learn/scikit-learn).
68+
69+
70+
71+
Full model lifecycle
72+
--------------------
73+
Filename: [full_lifecycle.py](full_lifecycle.py)
74+
75+
Level: Beginner
76+
77+
Demonstrates how `sasctl` can be used throughout the lifecycle of a model by:
78+
- training multiple Python models with [scikit-learn](https://github.com/scikit-learn/scikit-learn)
79+
- registering them to SAS Model Manager
80+
- publishing them to SAS's real-time scoring engine (MAS)
81+
- executing the models in real-time
82+
- creating a report to track model performance over time
83+
84+
85+
86+
Register a custom model
87+
------------------------
88+
Filename: [register_custom_model.py](register_custom_model.py)
89+
90+
Level: Intermediate
91+
92+
Registers a model in SAS Model Manager by explicitly providing the files and model details.
93+
94+
95+
96+
Register models with model metrics
97+
----------------------------------
98+
Filename: [FleetManagement.ipynb](FleetManagement.ipynb)
99+
100+
Level: Intermediate
101+
102+
Trains multiple tree-based models using [scikit-learn](https://github.com/scikit-learn/scikit-learn) and registers them in SAS Model Manager. Also uses the `pzmm` module of `sasctl` to generate and include model fit statistics and ROC/Lift charts.
103+
104+
105+
106+
Modeling with Python & SAS AutoML
107+
-------------------------------
108+
Filename: [data_science_pilot.ipynb](data_science_pilot.ipynb)
109+
110+
Level: Intermediate
111+
112+
Uses the [swat](https://github.com/sassoftware/python-swat) package to perform automated modeling on a dataset. Registers the results along with a custom XGBoost model to SAS Model Manager using `sasctl`.
113+
114+
115+
116+
Making direct REST API calls
117+
--------------------------
118+
Filename: [direct_REST_calls.py](direct_REST_calls.py)
119+
120+
Level: Advanced
121+
122+
Demonstrates using `sasctl` to make REST calls over HTTP(S) directly to the SAS microservices.
123+
124+
Use if you need to customize behavior or use functionality not yet exposed through higher-level `sasctl` functions.

examples/Viya 2020 Example.ipynb renamed to examples/data_science_pilot.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7340,9 +7340,9 @@
73407340
],
73417341
"metadata": {
73427342
"kernelspec": {
7343-
"display_name": "py36_swatsasctl",
7343+
"display_name": "Python 3",
73447344
"language": "python",
7345-
"name": "py36_swatsasctl"
7345+
"name": "python3"
73467346
},
73477347
"language_info": {
73487348
"codemirror_mode": {
@@ -7354,7 +7354,7 @@
73547354
"name": "python",
73557355
"nbconvert_exporter": "python",
73567356
"pygments_lexer": "ipython3",
7357-
"version": "3.6.10"
7357+
"version": "3.7.3"
73587358
}
73597359
},
73607360
"nbformat": 4,

0 commit comments

Comments
 (0)