From e44eda9a9bebedbe29756be0d27cf7fcea33e7ce Mon Sep 17 00:00:00 2001 From: Heiko J Schick Date: Thu, 8 Oct 2020 16:46:30 +0200 Subject: [PATCH] Minor changes --- Makefile | 18 ++++++++++-------- README.md | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 12c201f..84b4be8 100644 --- a/Makefile +++ b/Makefile @@ -2,26 +2,27 @@ VENV_NAME?=env PYTHON=${VENV_NAME}/bin/python3 +FILES=linear_regression.py prepare_train_model.py test_model.py .DEFAULT: help help: @echo "make env" - @echo " create and prepares the environment" + @echo " creates and prepares the environment" @echo "make clean" @echo " clean the development environment" @echo "make data" - @echo " download and unpack the data" + @echo " downloads and unpacks the data" @echo "make lint" - @echo " run pylint and mpy" + @echo " runs pylint and mpy" data: images images: - wget https://s3.us-east-2.amazonaws.com/naturalimages02/images.tar.gz + wget https://s3.us-east-2.amazonaws.com/naturalimages02/images.tar.gz tar -xzf images.tar.gz -env: $(VENV_NAME)/bin/activate images +env: $(VENV_NAME)/bin/activate data $(VENV_NAME)/bin/activate: - test -d $(VENV_NAME) || python3 -m venv $(VENV_NAME) + test -d $(VENV_NAME) || python3 -m venv $(VENV_NAME) ${PYTHON} -m pip install -U pip ${PYTHON} -m pip install --upgrade tensorflow ${PYTHON} -m pip install keras @@ -31,11 +32,12 @@ $(VENV_NAME)/bin/activate: ${PYTHON} -m pip install mypy touch $(VENV_NAME)/bin/activate -lint: - ${PYTHON} -m pylint --ignored-modules=tensorflow.keras linear_regression.py +lint: env + ${PYTHON} -m pylint --rcfile=pylintrc $(FILES) clean: rm -rf $(VENV_NAME) + rm -f data.csv rm -rf images rm -f images.tar.gz rm -f fine_tune.h5 diff --git a/README.md b/README.md index 4b6d4d9..4e7a7bb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Simple Keras -Simple Keras tutorial and example. \ No newline at end of file +Simple Keras tutorials and examples. \ No newline at end of file