Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SageMaker example: make downloads conditional #446

Merged
merged 3 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ select = [
# cell, creating a Dask cluster separately and then running the rest of the notebook's code
"F821",
]
"source/examples/rapids-sagemaker-higgs/notebook.ipynb" = [
# "Line too long", because of a 1-liner shell command starting with '!'
"E501",
]
"source/examples/xgboost-dask-databricks/notebook.ipynb" = [
# "undefined name spark" because Databricks magically makes a SparkSession
# available with name 'spark'
Expand Down
2 changes: 1 addition & 1 deletion source/cloud/aws/sagemaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sudo -u ec2-user -i <<'EOF'
mamba create -y -n rapids {{ rapids_conda_channels }} {{ rapids_conda_packages }} \
boto3 \
ipykernel \
sagemaker
'sagemaker>=2.198'
jacobtomlinson marked this conversation as resolved.
Show resolved Hide resolved

conda activate rapids

Expand Down
6 changes: 3 additions & 3 deletions source/examples/rapids-sagemaker-higgs/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
},
"outputs": [],
"source": [
"!mkdir dataset\n",
"!wget -P dataset https://archive.ics.uci.edu/ml/machine-learning-databases/00280/HIGGS.csv.gz\n",
"!gunzip dataset/HIGGS.csv.gz"
"!mkdir -p ./dataset\n",
"!if [ ! -f \"dataset/HIGGS.csv\" ]; then wget -P dataset https://archive.ics.uci.edu/ml/machine-learning-databases/00280/HIGGS.csv.gz; fi\n",
"!if [ ! -f \"dataset/HIGGS.csv\" ]; then gunzip dataset/HIGGS.csv.gz; fi"
]
},
{
Expand Down