-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
46 lines (35 loc) · 1008 Bytes
/
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
VENV_DIR = venv
TRAINOUTDIR = train_output
TESTOUTDIR = test_output
ifeq ($(OS),Windows_NT)
PYTHON := python
PIP := pip
VENV := source $(VENV_DIR)/Scripts/activate;
else
PYTHON := python3
PIP := pip3
VENV := source $(VENV_DIR)/bin/activate;
endif
RUN := $(VENV) $(PYTHON) -m
install: venv
$(VENV) $(PIP) install -Ur requirements.txt
venv:
test -d $(VENV_DIR) || $(PYTHON) -m venv $(VENV_DIR)
clean:
rm -rf $(TESTOUTDIR)/
rm -rf $(TRAINOUTDIR)/
rm -rf $(VENV_DIR)
rm -rf __pycache__
makedirectories:
mkdir train_output
mkdir test_output
splitdataset:
sh scripts/split.sh
runtrainone:
$(RUN) CNN_Malware_Train_Test.py --train Model_One > $(TRAINOUTDIR)/Model_One_Epochs.txt
runtraintwo:
$(RUN) CNN_Malware_Train_Test.py --train Model_Two > $(TRAINOUTDIR)/Model_Two_Epochs.txt
runtestone:
$(RUN) CNN_Malware_Train_Test.py --test Model_One > $(TESTOUTDIR)/Model_One_Test.txt
runtesttwo:
$(RUN) CNN_Malware_Train_Test.py --test Model_Two > $(TESTOUTDIR)/Model_Two_Test.txt