File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ def predict(sample, metadata):
50
50
name : classifier
51
51
predictor :
52
52
path : predictor.py
53
+ tracker :
54
+ model_type : classification
53
55
compute :
54
56
gpu : 1
55
57
` ` `
@@ -59,15 +61,7 @@ def predict(sample, metadata):
59
61
` ` ` bash
60
62
$ cortex deploy
61
63
62
- deployment started
63
-
64
-
65
- $ cortex get classifier --watch
66
-
67
- status up-to-date available requested last update avg latency
68
- live 1 1 1 8s 123ms
69
-
70
- url : http://***.amazonaws.com/sentiment/classifier
64
+ created endpoint : http://***.amazonaws.com/sentiment/classifier
71
65
` ` `
72
66
73
67
### Step 4: serve real-time predictions
@@ -80,6 +74,19 @@ $ curl http://***.amazonaws.com/sentiment/classifier \
80
74
positive
81
75
```
82
76
77
+ ### Step 5: monitor your deployment
78
+
79
+ ``` bash
80
+ $ cortex get classifier --watch
81
+
82
+ status up-to-date available requested last update avg latency
83
+ live 1 1 1 8s 123ms
84
+
85
+ class count
86
+ positive 8
87
+ negative 4
88
+ ```
89
+
83
90
<br >
84
91
85
92
## How Cortex works
@@ -88,7 +95,7 @@ The CLI sends configuration and code to the cluster every time you run `cortex d
88
95
89
96
<br >
90
97
91
- ## More examples
98
+ ## Examples
92
99
93
100
<!-- CORTEX_VERSION_README_MINOR x4 -->
94
101
- [ Sentiment analysis] ( https://github.com/cortexlabs/cortex/tree/0.10/examples/tensorflow/sentiment-analysis ) in TensorFlow with BERT
You can’t perform that action at this time.
0 commit comments