Skip to content

Commit

Permalink
update README.md about sample of sklearn for testing the SKLearn Serv… (
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaqianjing authored Nov 6, 2020
1 parent 82ec9ce commit 20256a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/samples/sklearn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ dump(clf, 'model.joblib')
Then, we can install and run the [SKLearn Server](../../../python/sklearnserver) using the generated model and test for prediction. Models can be on local filesystem, S3 compatible object storage, Azure Blob Storage, or Google Cloud Storage.

```shell
python -m sklearnserver --model_dir model.joblib --model_name svm
# we should indicate the directory containing the model file (model.joblib) by --model_dir
python -m sklearnserver --model_dir ./ --model_name svm
```

We can also use the inbuilt sklearn support for sample datasets and do some simple predictions
Expand Down Expand Up @@ -110,4 +111,4 @@ spec:
sklearn:
storageUri: "gs://kfserving-samples/models/sklearn/iris"
runtimeVersion: X.X.X
```
```

0 comments on commit 20256a7

Please sign in to comment.