-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cdbb566
Showing
20 changed files
with
23,593 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# AMP | ||
data/working/* | ||
apps/reports/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: Continuous Model Monitoring | ||
description: >- | ||
Demonstration of how to perform continuous model monitoring on CML | ||
using Model Metrics and Evidently.ai dashboards | ||
author: Cloudera Inc. | ||
specification_version: 1.0 | ||
prototype_version: 1.0 | ||
date: "2021-12-01" | ||
|
||
environment_variables: | ||
DEV_MODE: | ||
default: false | ||
description: >- | ||
Flag to indicate if the AMP should run on a 5% sample of the dataset | ||
(true) to facilitate efficient project development or the full dataset (false). | ||
required: True | ||
|
||
feature_dependencies: | ||
- model_metrics | ||
|
||
runtimes: | ||
- editor: Workbench | ||
kernel: Python 3.6 | ||
edition: Standard | ||
|
||
engine_images: | ||
- image_name: engine | ||
|
||
tasks: | ||
- type: run_session | ||
name: Install Dependencies | ||
script: scripts/install_dependencies.py | ||
kernel: python3 | ||
memory: 2 | ||
cpu: 1 | ||
|
||
- type: run_session | ||
name: Prepare Data | ||
script: scripts/prepare_data.py | ||
kernel: python3 | ||
memory: 2 | ||
cpu: 1 | ||
|
||
- type: run_session | ||
name: Train Model | ||
script: scripts/train.py | ||
kernel: python3 | ||
memory: 4 | ||
cpu: 2 | ||
|
||
- type: create_model | ||
name: Price Regressor | ||
entity_label: pr_model | ||
description: Predict housing prices with ridge regression | ||
access_key_environment_variable: SHTM_ACCESS_KEY | ||
default_resources: | ||
cpu: 1 | ||
memory: 2 | ||
default_replication_policy: | ||
type: fixed | ||
num_replicas: 1 | ||
|
||
- type: build_model | ||
name: Price Regressor | ||
entity_label: pr_model | ||
target_file_path: scripts/predict.py | ||
target_function_name: predict | ||
kernel: python3 | ||
examples: | ||
- request: | ||
{ | ||
"record": | ||
{ | ||
"id": 1962200037, | ||
"price": 626000, | ||
"bedrooms": 3, | ||
"bathrooms": 2.25, | ||
"sqft_living": 1750, | ||
"sqft_lot": 1572, | ||
"floors": 2.5, | ||
"waterfront": 0, | ||
"view": 0, | ||
"condition": 3, | ||
"grade": 9, | ||
"sqft_above": 1470, | ||
"sqft_basement": 280, | ||
"yr_built": 2005, | ||
"yr_renovated": 0, | ||
"zipcode": 98102, | ||
"lat": 47.6498, | ||
"long": -122.321, | ||
"sqft_living15": 2410, | ||
"sqft_lot15": 3050, | ||
"date_sold": "2014-05-02", | ||
"date_listed": "2014-03-04", | ||
}, | ||
} | ||
|
||
- type: deploy_model | ||
name: Price Regressor | ||
entity_label: pr_model | ||
|
||
- type: run_session | ||
name: Run Simulation | ||
script: scripts/simulate.py | ||
kernel: python3 | ||
memory: 4 | ||
cpu: 2 |
Oops, something went wrong.