8000 updated documentation · Sivateja0689/python-sasctl@8870e46 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8870e46

Browse files
committed
updated documentation
1 parent 3c6d6f3 commit 8870e46

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

doc/api/sasctl.utils.pyml2ds.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sasctl.utils.pyml2ds package
2+
==========================
3+
4+
Submodules
5+
----------
6+
7+
sasctl.utils.pyml2ds.pyml2ds module
8+
------------------------------
9+
10+
.. automodule:: sasctl.utils.pyml2ds.pyml2ds
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:

doc/api/sasctl.utils.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Subpackages
77
.. toctree::
88

99
sasctl.utils.pymas
10+
sasctl.utils.pyml2ds
1011

1112
Submodules
1213
----------

src/sasctl/utils/pyml2ds/core.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ def pyml2ds(in_file, out_var_name="P_TARGET"):
6262
str
6363
A SAS Data Step program implementing the model.
6464
65+
Examples
66+
--------
67+
Generate SAS code from an XGBoost model.
68+
69+
>>> from xgboost.sklearn import XGBRegressor
70+
>>> xgb = XGBRegressor()
71+
>>> xgb.fit(X, y)
72+
>>> pkl = pickle.dumps(xgb)
73+
>>> sas_code = pyml2ds(pkl)
74+
6575
"""
6676

6777
try:

0 commit comments

Comments
 (0)
0