#!/bin/bash
# Training parameters.
MODEL:=lasso_regression
# HPC parameters.
BASE:=$(PWD)

all: run

init:
	echo "Initialize running environment Complete!"

run:
	mkdir -p $(BASE)/slurm
	sbatch $(BASE)/scripts/$(HPC_TYPE)/$(MODEL).sh

connect:
	ssh $(HPC_USER)@$(HPC_IP)

docs:
	cd $(BASE)/docs && make pdf

test:
	cd $(BASE)/params && make test
	cd $(BASE)/utils && make test
	cd $(BASE)/preprocess && make test
	cd $(BASE)/analysis && make test
	cd $(BASE)/models && make test
	cd $(BASE)/train && make test

clean:
	rm -rf $(BASE)/__pycache__
	cd $(BASE)/docs && make clean
	cd $(BASE)/params && make clean
	cd $(BASE)/utils && make clean
	cd $(BASE)/preprocess && make clean
	cd $(BASE)/analysis && make clean
	cd $(BASE)/models && make clean
	cd $(BASE)/train && make clean

clean-all:
	make clean
	rm -rf $(BASE)/slurm

