26 lines
696 B
Bash
Executable File
26 lines
696 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
|
|
pip install "tensorflow[and-cuda]"
|
|
pip install --upgrade kagglehub[pandas-datasets,hf-datasets]
|
|
|
|
jupyter nbconvert --to notebook --execute Skin_Cancer_Classification.ipynb --output Skin_Cancer_Classification_Final.ipynb --log-level=DEBUG
|
|
# python3 skin_cancer_classification.py
|
|
echo "Done."
|