Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo20240918p4 #929

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
684 changes: 343 additions & 341 deletions .circleci/config.yml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
jupyter_notebooks*
*/env*
*/venv*
.circleci*
packages/regression_model
*.env
*.log
.git
jupyter_notebooks*
*/env*
*/venv*
.circleci*
packages/regression_model
*.env
*.log
.git
.gitignore
280 changes: 140 additions & 140 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,140 +1,140 @@
# 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/
*.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/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
env39/
env311/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# pycharm
.idea/

# datafiles
packages/regression_model/regression_model/datasets/*.csv
packages/regression_model/regression_model/datasets/*.zip
packages/regression_model/regression_model/datasets/*.txt
train.csv
test.csv
raw.csv
data_description.txt
house-prices-advanced-regression-techniques.zip
sample_submission.csv
test_data_predictions.csv
v2-plant-seedlings-dataset/
v2-plant-seedlings-dataset.zip

# all logs
logs/

# trained models (will be created in CI)
section-05-production-model-package/regression_model/trained_models/*.pkl
packages/regression_model/regression_model/trained_models/*.pkl
packages/neural_network_model/neural_network_model/trained_models/*.pkl
packages/neural_network_model/neural_network_model/trained_models/*.h5
*.h5
packages/neural_network_model/neural_network_model/datasets/training_data_reference.txt
*.pkl

.DS_Store

kaggle.json
packages/ml_api/uploads/*
# 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/
*.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/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
env39/
env311/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
# pycharm
.idea/
# datafiles
packages/regression_model/regression_model/datasets/*.csv
packages/regression_model/regression_model/datasets/*.zip
packages/regression_model/regression_model/datasets/*.txt
train.csv
test.csv
raw.csv
data_description.txt
house-prices-advanced-regression-techniques.zip
sample_submission.csv
test_data_predictions.csv
v2-plant-seedlings-dataset/
v2-plant-seedlings-dataset.zip
# all logs
logs/
# trained models (will be created in CI)
section-05-production-model-package/regression_model/trained_models/*.pkl
packages/regression_model/regression_model/trained_models/*.pkl
packages/neural_network_model/neural_network_model/trained_models/*.pkl
packages/neural_network_model/neural_network_model/trained_models/*.h5
*.h5
packages/neural_network_model/neural_network_model/datasets/training_data_reference.txt
*.pkl
.DS_Store
kaggle.json
packages/ml_api/uploads/*
44 changes: 22 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
FROM python:3.6.4

# Create the user that will run the app
RUN adduser --disabled-password --gecos '' ml-api-user

WORKDIR /opt/ml_api

ARG PIP_EXTRA_INDEX_URL
ENV FLASK_APP run.py

# Install requirements, including from Gemfury
ADD ./packages/ml_api /opt/ml_api/
RUN pip install --upgrade pip
RUN pip install -r /opt/ml_api/requirements.txt

RUN chmod +x /opt/ml_api/run.sh
RUN chown -R ml-api-user:ml-api-user ./

USER ml-api-user

EXPOSE 5000

FROM python:3.6.4
# Create the user that will run the app
RUN adduser --disabled-password --gecos '' ml-api-user
WORKDIR /opt/ml_api
ARG PIP_EXTRA_INDEX_URL
ENV FLASK_APP run.py
# Install requirements, including from Gemfury
ADD ./packages/ml_api /opt/ml_api/
RUN pip install --upgrade pip
RUN pip install -r /opt/ml_api/requirements.txt
RUN chmod +x /opt/ml_api/run.sh
RUN chown -R ml-api-user:ml-api-user ./
USER ml-api-user
EXPOSE 5000
CMD ["bash", "./run.sh"]
Loading