8000 updated examples to use current versions of functions · sassoftware/python-sasctl@5925131 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5925131

Browse files
committed
updated examples to use current versions of functions
1 parent 2a79d58 commit 5925131

3 files changed

+13
-13
lines changed

examples/pzmmCompleteModelExampleMLFlowSklearn.ipynb renamed to examples/pzmm_complete_model_example_MLFlow_sklearn.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@
229229
"outputs": [],
230230
"source": [
231231
"J = pzmm.JSONFiles()\n",
232-
"J.writeVarJSON(inputsDict, isInput=True, jPath=zipFolder)\n",
233-
"J.writeVarJSON(outputsDict, isInput=False, jPath=zipFolder)"
232+
"J.write_var_json(inputsDict, isInput=True, jPath=zipFolder)\n",
233+
"J.write_var_json(outputsDict, isInput=False, jPath=zipFolder)"
234234
]
235235
},
236236
{
@@ -241,7 +241,7 @@
241241
"outputs": [],
242242
"source": [
243243
"# Write model properties to a json file\n",
244-
"J.writeModelPropertiesJSON(modelName=modelPrefix,\n",
244+
"J.write_model_properties_json(modelName=modelPrefix,\n",
245245
" modelDesc='MLFlow Model ',\n",
246246
" targetVariable='BAD',\n",
247247
" modelType='Logistic Regression',\n",
@@ -253,7 +253,7 @@
253253
" modeler='sasdemo')\n",
254254
"\n",
255255
"# Write model metadata to a json file\n",
256-
"J.writeFileMetadataJSON(modelPrefix, jPath=zipFolder)"
256+
"J.write_file_metadata_json(modelPrefix, jPath=zipFolder)"
257257
]
258258
},
259259
{
@@ -294,7 +294,7 @@
294294
"outputs": [],
295295
"source": [
296296
"I = pzmm.ImportModel()\n",
297-
"I.pzmmImportModel(zipFolder, modelPrefix, 'MLFlowTest', inputsDict, None, '{}.predict({})', metrics=['tensor'], force=True)"
297+
"I.import_model(zipFolder, modelPrefix, 'MLFlowTest', inputsDict, None, '{}.predict({})', metrics=['tensor'], force=True)"
298298
]
299299
},
300300
{

examples/pzmm_tensorflow_keras_model_import.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,10 @@
686686
"name": "stdout",
687687
"output_type": "stream",
688688
"text": [
689-
"inputVar.json was successfully written and saved to /Users/dalmoo/Documents/GitHub/python-sasctl/examples/data/hmeqModels/KerasModel/inputVar.json\n",
690-
"outputVar.json was successfully written and saved to /Users/dalmoo/Documents/GitHub/python-sasctl/examples/data/hmeqModels/KerasModel/outputVar.json\n",
691-
"ModelProperties.json was successfully written and saved to /Users/dalmoo/Documents/GitHub/python-sasctl/examples/data/hmeqModels/KerasModel/ModelProperties.json\n",
692-
"fileMetadata.json was successfully written and saved to /Users/dalmoo/Documents/GitHub/python-sasctl/examples/data/hmeqModels/KerasModel/fileMetadata.json\n"
689+
"inputVar.json was successfully written and saved to python-sasctl/examples/data/hmeqModels/KerasModel/inputVar.json\n",
690+
"outputVar.json was successfully written and saved to python-sasctl/examples/data/hmeqModels/KerasModel/outputVar.json\n",
691+
"ModelProperties.json was successfully written and saved to python-sasctl/examples/data/hmeqModels/KerasModel/ModelProperties.json\n",
692+
"fileMetadata.json was successfully written and saved to python-sasctl/examples/data/hmeqModels/KerasModel/fileMetadata.json\n"
693693
]
694694
}
695695
],

examples/register_pytorch_comp_vision.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,20 @@
114114
"name": "stdout",
115115
"output_type": "stream",
116116
"text": [
117-
"inputVar.json was successfully written and saved to /data/paugre/rapidApp2/Model/inputVar.json\n",
118-
"outputVar.json was successfully written and saved to /data/paugre/rapidApp2/Model/outputVar.json\n"
117+
"inputVar.json was successfully written and saved to Model/inputVar.json\n",
118+
"outputVar.json was successfully written and saved to Model/outputVar.json\n"
119119
]
120120
}
121121
],
122122
"source": [
123123
"# Input variables\n",
124124
"inputVar = pd.DataFrame({'image' : ['msg'*33333]})\n",
125-
"sasctl.pzmm.writeJSONFiles.JSONFiles().writeVarJSON(inputDF=inputVar,isInput=True)\n",
125+
"pzmm.JSONFiles.write_var_json(inputDF=inputVar,isInput=True)\n",
126126
"inputVarJSON = pd.read_json(\"inputVar.json\")\n",
127127
"\n",
128128
"# Output variables\n",
129129
"outputVar = pd.DataFrame({'food_label' : ['msg'*90], 'msg' : ['msg'*90]})\n",
130-
"sasctl.pzmm.writeJSONFiles.JSONFiles().writeVarJSON(inputDF=outputVar,isInput=False)\n",
130+
"pzmm.JSONFiles.write_var_json(inputDF=outputVar,isInput=False)\n",
131131
"outputVarJSON = pd.read_json(\"outputVar.json\")\n",
132132
"\n",
133133
"# Define Input Output Variables and types for SAS Model Manager\n",

0 commit comments

Comments
 (0)
0