28 lines
926 B
Bash
28 lines
926 B
Bash
#!/bin/bash
|
|
source /home/x79/miniconda3/etc/profile.d/conda.sh
|
|
conda activate env_01
|
|
set -e
|
|
|
|
# Configure GDAL for vsicurl stability
|
|
export GDAL_HTTP_MAX_RETRY=5
|
|
export GDAL_HTTP_RETRY_DELAY=2
|
|
export GDAL_HTTP_CONNECTION_TIMEOUT=10
|
|
export GDAL_HTTP_TIMEOUT=30
|
|
export CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.tif,.tiff
|
|
export GDAL_DISABLE_READDIR_ON_OPEN=YES
|
|
|
|
|
|
echo "=== [1/4] Running RF Training ==="
|
|
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 --inplace 01.train_ODC.ipynb
|
|
|
|
echo "=== [2/4] Running XGBoost Training ==="
|
|
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 --inplace 01.train_ODC_XGBoost.ipynb
|
|
|
|
echo "=== [3/4] Running Prediction ==="
|
|
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 --inplace 02.predict_ODC.ipynb
|
|
|
|
echo "=== [4/4] Running New Train ==="
|
|
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 --inplace new_train.ipynb
|
|
|
|
echo "=== ALL DONE SUCCESSFULLY ==="
|