-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (45 loc) · 2.08 KB
/
Makefile
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
58
################################################################################
# GLOBALS #
################################################################################
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUCKET = [OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')
PROFILE = default
PROJECT_NAME = EDA Toolkit
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
venv_dep_setup_local: venv requirements_local # for local set-up
venv_dep_setup_gpu: venv requirements_gpu # for server/gpu set-up
################################################################################
#################### Adult Income Dataset Script Generation ####################
################################################################################
# clean directories
clean_dir:
@echo "Cleaning directory..."
rm -rf public_data/
rm -rf data/
rm -rf data_output/
rm -rf images/
adult_income_data_management:
$(PYTHON_INTERPRETER) -m py_example_scripts.adult_income_data_management
adult_income_eda:
$(PYTHON_INTERPRETER) -m py_example_scripts.adult_income_eda
adult_income_scripts: adult_income_data_management adult_income_eda