Skip to content

Commit d0347e9

Browse files
committed
Update tutorial
1 parent 5bd5b42 commit d0347e9

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

examples/sklearn/iris-classifier/README.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ Track the status of your api using `cortex get`:
132132
```bash
133133
$ cortex get iris-classifier --watch
134134
135-
status up-to-date requested last update avg inference
136-
live 1 1 8s -
135+
status up-to-date requested last update avg inference 2XX
136+
live 1 1 8s - -
137137
138138
endpoint: http://***.amazonaws.com/iris-classifier
139139
```
@@ -150,7 +150,7 @@ $ cortex logs iris-classifier
150150

151151
## Serve real-time predictions
152152

153-
We can use `curl` to test our prediction service:
153+
You can use `curl` to test your prediction service:
154154

155155
```bash
156156
$ curl http://***.amazonaws.com/iris-classifier \
@@ -193,8 +193,8 @@ After making more predictions, your `cortex get` command will show information a
193193
```bash
194194
$ cortex get iris-classifier --watch
195195
196-
status up-to-date requested last update avg inference
197-
live 1 1 16s 28ms
196+
status up-to-date requested last update avg inference 2XX
197+
live 1 1 10m 28ms 14
198198
199199
class count
200200
setosa 8
@@ -236,8 +236,8 @@ Run `cortex get` again:
236236
```bash
237237
$ cortex get iris-classifier --watch
238238
239-
status up-to-date requested last update avg inference
240-
live 1 1 16s 24 ms
239+
status up-to-date requested last update avg inference 2XX
240+
live 1 1 10m 24ms 14
241241
242242
class count
243243
setosa 8
@@ -378,18 +378,22 @@ Run `cortex deploy` to create your batch API:
378378
```bash
379379
$ cortex deploy
380380
381+
updating iris-classifier
382+
updating another-iris-classifier
381383
creating batch-iris-classifier
382384
```
383385

386+
Since a new file was added to the directory, and all files in the directory containing `cortex.yaml` are made available in your APIs, the previous two APIs were updated in addition to the the batch classifier being created.
387+
384388
`cortex get` should show all 3 APIs now:
385389

386390
```bash
387391
$ cortex get --watch
388392
389393
api status up-to-date requested last update
390-
iris-classifier live 1 1 10m
391-
another-iris-classifier live 1 1 5m
392-
batch-iris-classifier live 1 1 8s
394+
iris-classifier live 1 1 17s
395+
another-iris-classifier live 1 1 17s
396+
batch-iris-classifier live 1 1 17s
393397
```
394398

395399
<br>
@@ -401,23 +405,23 @@ $ curl http://***.amazonaws.com/batch-iris-classifier \
401405
-X POST -H "Content-Type: application/json" \
402406
-d '[
403407
{
404-
"sepal_length": 5.2,
405-
"sepal_width": 3.6,
406-
"petal_length": 1.5,
407-
"petal_width": 0.3
408-
},
409-
{
410-
"sepal_length": 7.1,
411-
"sepal_width": 3.3,
412-
"petal_length": 4.8,
413-
"petal_width": 1.5
414-
},
415-
{
416-
"sepal_length": 6.4,
417-
"sepal_width": 3.4,
418-
"petal_length": 6.1,
419-
"petal_width": 2.6
420-
}
408+
"sepal_length": 5.2,
409+
"sepal_width": 3.6,
410+
"petal_length": 1.5,
411+
"petal_width": 0.3
412+
},
413+
{
414+
"sepal_length": 7.1,
415+
"sepal_width": 3.3,
416+
"petal_length": 4.8,
417+
"petal_width": 1.5
418+
},
419+
{
420+
"sepal_length": 6.4,
421+
"sepal_width": 3.4,
422+
"petal_length": 6.1,
423+
"petal_width": 2.6
424+
}
421425
]'
422426
423427
["setosa","versicolor","virginica"]

0 commit comments

Comments
 (0)