File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Create a new *code cell* in your notebook. Then copy the following code and past
113
113
import joblib
114
114
from sklearn.linear_model import Ridge
115
115
116
- model = Ridge().fit(X,y )
116
+ model = Ridge().fit(X_df,y_df )
117
117
joblib.dump(model, ' sklearn_regression_model.pkl' )
118
118
```
119
119
@@ -281,10 +281,8 @@ We recommend that you test the web service to ensure it works as expected. To re
281
281
``` python
282
282
import json
283
283
284
-
285
284
input_payload = json.dumps({
286
- ' data' : X_df[0 :2 ].values.tolist(),
287
- ' method' : ' predict' # If you have a classification model, you can get probabilities by changing this to 'predict_proba'.
285
+ ' data' : X_df[0 :2 ].values.tolist()
288
286
})
289
287
290
288
output = service.run(input_payload)
You can’t perform that action at this time.
0 commit comments