Skip to content

Commit ed93fae

Browse files
committed
Fix for the pzmm regression model example, second attempt.
1 parent ca2202f commit ed93fae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/pzmmModelImportExampleRegression.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@
204204
" J.writeVarJSON(data[predict], isInput=True, jPath=zipFolder)\n",
205205
" \n",
206206
" # Set output variables and assign an event threshold, then write output variable mapping\n",
207-
" outputVar = pd.DataFrame(columns=['EM_PREDICTION'])\n",
208-
" outputVar['EM_PREDICTION'].loc[1] = 0.5\n",
207+
" outputVar = pd.DataFrame(data=[[0.5]], columns=['EM_PREDICTION'])\n",
209208
" J.writeVarJSON(outputVar, isInput=False, jPath=zipFolder)\n",
210209
" \n",
211210
" # Write model properties to a json file\n",

0 commit comments

Comments
 (0)