24 lines
529 B
Bash
Executable File
24 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
VENV_DIR=".venv"
|
|
|
|
# 1. Create venv if needed
|
|
if [[ ! -d "$VENV_DIR" ]]; then
|
|
echo "Creating virtual environment..."
|
|
python3 -m venv "$VENV_DIR"
|
|
fi
|
|
|
|
# 2. Activate venv
|
|
source "$VENV_DIR/bin/activate"
|
|
|
|
# 3. Install dependencies (lightweight, safe to re-run)
|
|
echo "Installing dependencies..."
|
|
pip install --upgrade pip
|
|
pip install pandas numpy matplotlib seaborn pillow scikit-learn tensorflow
|
|
pip install --upgrade kagglehub[pandas-datasets,hf-datasets]
|
|
|
|
python3 skin_cancer_classification.py
|
|
echo "Done."
|