forked from trainindata/deploying-machine-learning-models
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
7605297
commit 7d9f27c
Showing
10 changed files
with
169 additions
and
85 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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.1 | ||
0.3.0 |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--extra-index-url=${PIP_EXTRA_INDEX_URL} | ||
|
||
# api | ||
flask==1.0.2 | ||
flask>=1.1.1,<1.2.0 | ||
|
||
# schema validation | ||
marshmallow==2.17.0 | ||
|
||
# Set this to the previous model version | ||
regression-model==0.1.0 | ||
regression-model==2.0.19 | ||
|
||
# temporarily necessary as we update sklearn | ||
joblib>=0.14.1,<0.15.0 |
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
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,32 @@ | ||
[tox] | ||
envlist = py36, py37, py38 | ||
skipsdist = True | ||
|
||
|
||
[testenv] | ||
install_command = pip install --pre {opts} {packages} | ||
deps = | ||
-rrequirements.txt | ||
|
||
passenv = | ||
PIP_EXTRA_INDEX_URL | ||
KERAS_BACKEND | ||
|
||
setenv = | ||
PYTHONPATH=. | ||
|
||
commands = | ||
pytest \ | ||
-s \ | ||
-v \ | ||
-m "not differential" \ | ||
{posargs:tests} | ||
|
||
|
||
# content of pytest.ini | ||
[pytest] | ||
markers = | ||
integration: mark a test as an integration test. | ||
differential: mark a test as a differential test. | ||
filterwarnings = | ||
ignore::DeprecationWarning |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.0 | ||
2.0.20 |
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
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 |
---|---|---|
@@ -1,35 +1,25 @@ | ||
# Tox is a generic virtualenv management and test command line tool. Its goal is to | ||
# standardize testing in Python. We will be using it extensively in this course. | ||
|
||
# Using Tox we can (on multiple operating systems): | ||
# + Eliminate PYTHONPATH challenges when running scripts/tests | ||
# + Eliminate virtualenv setup confusion | ||
# + Streamline steps such as model training, model publishing | ||
|
||
[tox] | ||
envlist = regression_model | ||
skipsdist = True | ||
envlist = py36, py37, py38 | ||
|
||
|
||
[testenv] | ||
install_command = pip install {opts} {packages} | ||
install_command = pip install --pre {opts} {packages} | ||
whitelist_externals = unzip | ||
deps = | ||
-rrequirements.txt | ||
|
||
setenv = | ||
PYTHONPATH=. | ||
-rrequirements.txt | ||
|
||
commands = | ||
python regression_model/train_pipeline.py | ||
pytest tests/ | ||
|
||
|
||
[testenv:install_locally] | ||
deps = | ||
{[testenv]deps} | ||
passenv = | ||
KAGGLE_USERNAME | ||
KAGGLE_KEY | ||
|
||
setenv = | ||
PYTHONPATH=. | ||
PYTHONPATH=. | ||
|
||
commands = | ||
python regression_model/train_pipeline.py | ||
python setup.py sdist bdist_wheel | ||
kaggle competitions download -c house-prices-advanced-regression-techniques -p regression_model/datasets/ | ||
unzip -o regression_model/datasets/house-prices-advanced-regression-techniques.zip -d regression_model/datasets | ||
python regression_model/train_pipeline.py | ||
pytest \ | ||
-s \ | ||
-v \ | ||
{posargs:tests} |
Empty file.