Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
66 lines (59 loc) · 1.92 KB
/
Copy pathsetup.sh
File metadata and controls
66 lines (59 loc) · 1.92 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
58
59
60
61
62
63
64
65
66
#!/bin/bash
# BanglaHealth-AI — Quick Setup Script
# Usage: bash setup.sh
set -e
echo "=========================================="
echo " BanglaHealth-AI — Project Setup"
echo "=========================================="
# 1. Create virtual environment
echo ""
echo "[1/4] Creating virtual environment..."
if [ ! -d "venv" ]; then
python -m venv venv
echo " Virtual environment created."
else
echo " Virtual environment already exists."
fi
# 2. Activate and install dependencies
echo ""
echo "[2/4] Installing dependencies..."
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then
source venv/Scripts/activate
else
source venv/bin/activate
fi
pip install --upgrade pip -q
pip install -r requirements.txt -q
echo " Dependencies installed."
# 3. Verify datasets exist
echo ""
echo "[3/4] Checking datasets..."
if [ -f "data/raw/diabetes.csv" ] && [ -f "data/raw/heart.csv" ]; then
echo " Datasets found."
else
echo " ERROR: Datasets not found in data/raw/"
echo " Please ensure diabetes.csv and heart.csv are in data/raw/"
exit 1
fi
# 4. Create necessary directories
echo ""
echo "[4/4] Ensuring directories exist..."
mkdir -p data/processed models outputs
echo " Directories ready."
echo ""
echo "=========================================="
echo " Setup Complete!"
echo "=========================================="
echo ""
echo "Next steps:"
echo " 1. Activate venv: source venv/Scripts/activate (Windows)"
echo " source venv/bin/activate (Linux/Mac)"
echo ""
echo " 2. Run notebooks: jupyter notebook notebooks/"
echo " Run them in order: 01_eda -> 02_preprocessing -> 03_model_training"
echo " -> 04_evaluation -> 05_explainability -> 06_fairness"
echo ""
echo " 3. Launch dashboard: streamlit run app/app.py"
echo " 4. Launch API: uvicorn api.main:app --reload"
echo " 5. Run tests: pytest tests/ -v"
echo ""