Commit ac19b87
authored
Update README.md
I've changed the parameter order in the examples:
>>> from sasctl import Session, register_model
>>> from sklearn import linear_model as lm
>>> with Session('example.com', authinfo=<authinfo file>):
... model = lm.LogisticRegression()
... register_model('Sklearn Model', model, 'My Project')
When running it, I received errors. It seems like the order of the parameters for the register_model function is not correct.
Running the code:
register_model('Sklearn Model', model, 'My Project')
Gives an error.
Running the following code:
register_model(model, 'Sklearn Model', 'My Project')
Executes successfully.
Based on the function definition in tasks.py, the order is the following:
def register_model(model, name, project, repository=None, input=None, version=None, files=None, force=False)
Let me know if I missed something.1 parent 51b18af commit ac19b87
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments