Skip to content

Commit

Permalink
income example (#378)
Browse files Browse the repository at this point in the history
* income example

* move artifacts to gs
  • Loading branch information
ukclivecox authored Jul 31, 2022
1 parent 5550c43 commit b7925a0
Show file tree
Hide file tree
Showing 17 changed files with 2,236 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/source/contents/examples/income.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Production Income Classifier with Drift, Outlier and Explanations

Run these examples from the `samples/examples/income_classifier` folder.


```{include} ../../../../samples/examples/income_classifier/infer.md
```
3 changes: 2 additions & 1 deletion docs/source/contents/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ This section will provide some examples to allow operations with Seldon to be te

## Advanced Examples

* [Production image clasifier with drift and outlier monitoring](cifar10.md)
* [Production image classifier with drift and outlier monitoring](cifar10.md)
* [Production income classifier with drift, outlier and explanations](income.md)

```{toctree}
:maxdepth: 1
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contents/models/inference-artifacts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ To run your model inside Seldon you must supply an inference artifact that can b
- MLServer
- `python`
- [docs](https://github.com/SeldonIO/MLServer/blob/master/docs/examples/sklearn/README.md)
- TBC
- [example](../../examples/income.md)
* - Spark Mlib
- MLServer
- `spark-mlib`
Expand Down
6 changes: 6 additions & 0 deletions samples/examples/income_classifier/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
classifier/
preprocessor/
drift-detector/
outlier-detector/
explainer/
infer-data/
30 changes: 30 additions & 0 deletions samples/examples/income_classifier/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

infer.md: infer.ipynb
jupyter nbconvert \
infer.ipynb \
--ClearOutputPreprocessor.enabled=False \
--to markdown \
--output infer.md
../../markdown-transforms.sh infer.md

train.md: train.ipynb
jupyter nbconvert \
train.ipynb \
--ClearOutputPreprocessor.enabled=False \
--to markdown \
--output train.md
../../markdown-transforms.sh train.md


.PHONY: upload_artifacts
upload_artifacts:
gsutil cp -R classifier gs://seldon-models/scv2/examples/income
gsutil cp -R explainer gs://seldon-models/scv2/examples/income
gsutil cp -R drift-detector gs://seldon-models/scv2/examples/income
gsutil cp -R outlier-detector gs://seldon-models/scv2/examples/income
gsutil cp -R preprocessor gs://seldon-models/scv2/examples/income
gsutil cp -R infer-data gs://seldon-models/scv2/examples/income

.PHONY: install-dev
install-dev:
pip install -r requirements.txt
Loading

0 comments on commit b7925a0

Please sign in to comment.