-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (45 loc) · 2.09 KB
/
Makefile
File metadata and controls
58 lines (45 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3
################################################################################
# GLOBALS #
################################################################################
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUCKET = [OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')
PROFILE = default
PROJECT_NAME = Equi Boots
PYTHON_INTERPRETER = python3
ifeq (,$(shell which conda))
HAS_CONDA=False
else
HAS_CONDA=True
endif
### general usage notes
### 2>&1 | tee ==>pipe operation to save model output from terminal to .txt file
#################################################################################
# COMMANDS #
#################################################################################
################################################################################
############## Setting up a Virtual Environment and Dependencies ###############
################################################################################
# virtual environment set-up (local)
venv:
$(PYTHON_INTERPRETER) -m venv equi_venv
source equi_venv/bin/activate
## Install Python Dependencies
requirements_local:
$(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel
$(PYTHON_INTERPRETER) -m pip install -r requirements_prod.txt
venv_dep_setup_local: venv requirements_local # for local set-up
venv_dep_setup_gpu: venv requirements_gpu # for server/gpu set-up
################################################################################
####################### Preprocessing (+) Dataprep Pipeline ####################
################################################################################
# clean directories
clean_dir:
@echo "Cleaning directory..."
rm -rf public_data/
## Create folder/file paths
create_folders:
mkdir -p public_data
## Prediction Generation
pred_generation:
$(PYTHON_INTERPRETER) -m py_scripts.adult_income_xgbearly