-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (41 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
53 lines (41 loc) · 1.32 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
#################################################################################
# GLOBALS #
#################################################################################
PROJECT_NAME = titanic-survival-classification
PYTHON_VERSION = 3.11
PYTHON_INTERPRETER = python
#################################################################################
# COMMANDS #
#################################################################################
## Install Python Dependencies
.PHONY: requirements
requirements:
$(PYTHON_INTERPRETER) -m pip install -U pip
$(PYTHON_INTERPRETER) -m pip install -r requirements.txt
## Delete all compiled Python files
.PHONY: clean
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
## Lint using flake8 and black (use `make format` to do formatting)
.PHONY: lint
lint:
flake8 ARISA_DSML
all:
requirements clean lint
## Download data from Kaggle
.PHONY: download
download:
python -m ARISA_DSML.preproc
.PHONY: preprocess
preprocess:
python -m ARISA_DSML.preproc
.PHONY: train
train:
python -m ARISA_DSML.train
.PHONY: resolve
resolve:
python -m ARISA_DSML.resolve
.PHONY: predict
predict:
python -m ARISA_DSML.predict