Skip to content

Commit c7d34af

Browse files
committed
Update docs
1 parent 8e8e00f commit c7d34af

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

cortex-installer.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ function install_operator() {
165165
setup_bucket
166166
setup_cloudwatch_logs
167167

168+
prompt_for_telemetry
169+
168170
echo "Installing the Cortex operator ..."
169171

170-
prompt_for_telemetry
171172
setup_namespace
172173
setup_configmap
173174
setup_secrets
@@ -1933,7 +1934,7 @@ function prompt_for_telemetry() {
19331934
while true
19341935
do
19351936
echo
1936-
read -p "Would you like to help improve Cortex by anonymously sending error reports and usage stats to the dev team [Y/n] " -n 1 -r
1937+
read -p "Would you like to help improve Cortex by anonymously sending error reports and usage stats to the dev team? [Y/n] " -n 1 -r
19371938
echo
19381939
if [[ $REPLY =~ ^[Yy]$ ]]; then
19391940
export CORTEX_ENABLE_TELEMETRY=true

docs/operator/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Cortex runs on Kubernetes. If you don't already have a Kubernetes cluster, [eksc
4242
eksctl create cluster --name=cortex --nodes=2 --node-type=t3.medium
4343
```
4444

45-
This cluster configuration will cost about $0.29 per hour.
45+
This cluster configuration will cost about $0.29 per hour in AWS fees.
4646

4747
## Operator
4848

docs/quick-start.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ Add to `app.yaml`:
270270
training:
271271
num_steps: 1000
272272
batch_size: 10
273+
aggregates:
274+
- class_index
273275
```
274276

275277
#### Implement the estimator
@@ -292,7 +294,7 @@ def create_estimator(run_config, model_config):
292294
return tf.estimator.DNNClassifier(
293295
feature_columns=feature_columns,
294296
hidden_units=model_config["hparams"]["hidden_units"],
295-
n_classes=3,
297+
n_classes=len(model_config["aggregates"]["class_index"]),
296298
config=run_config,
297299
)
298300
```
@@ -330,6 +332,12 @@ You can get an overview of the deployment using `cortex get` (see [resource stat
330332
```
331333
$ cortex get
332334

335+
---------------
336+
Python Packages
337+
---------------
338+
339+
None
340+
333341
-----------
334342
Raw Columns
335343
-----------
@@ -394,6 +402,7 @@ You can get a summary of the status of resources using `cortex status`:
394402
```
395403
$ cortex status --watch
396404

405+
Python Packages: none
397406
Raw Columns: 5 ready
398407
Aggregates: 9 ready
399408
Transformed Columns: 5 ready

examples/iris/resources/models.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- kind: model
22
name: dnn
3+
path: dnn.py
34
type: classification
45
target_column: class_indexed
56
feature_columns:
@@ -10,8 +11,8 @@
1011
hparams:
1112
hidden_units: [4, 2]
1213
data_partition_ratio:
13-
training: 0.9
14-
evaluation: 0.1
14+
training: 80
15+
evaluation: 20
1516
training:
1617
batch_size: 10
1718
num_steps: 1000

0 commit comments

Comments
 (0)