Add make command to make dataset

This commit is contained in:
Paul Harrison 2023-10-19 09:21:42 +01:00
parent 619e3a4a6f
commit e13fe9b1ce
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ build: ## Build the Docker image
@poetry export --only main --output requirements.txt
@docker build --tag ds-interview .
.PHONY: data
data: ## Create dataset
@poetry run make-data
.PHONY: help
help: ## Show all available commands
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-36s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);

View File

@ -24,7 +24,7 @@ Ensure you have created and validated your account with [Ngrok](https://ngrok.co
`src/interview/data.py` contains an example function to build the classic [Iris dataset](https://scikit-learn.org/stable/auto_examples/datasets/plot_iris_dataset.html). You can build this with
```shell
poetry run make-data
make data
```
### Run the Notebook with Docker