Skip to content

Cleaning pipeline + HPO on training #6

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

Merged
merged 9 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 11 additions & 6 deletions 01_preprocessing/data_preprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"metadata": {},
"outputs": [],
"source": [
"%%time\n",
"import sagemaker\n",
"from sagemaker import get_execution_role\n",
"import boto3\n",
Expand All @@ -91,7 +92,7 @@
"role = sagemaker.get_execution_role()\n",
"\n",
"default_bucket = sagemaker_session.default_bucket() # or use your own custom bucket name\n",
"base_job_prefix = \"preprocess\" # or define your own prefix"
"base_job_prefix = \"cv-sagemaker-immersionday\" # or define your own prefix"
]
},
{
Expand Down Expand Up @@ -217,11 +218,8 @@
" ProcessingInput,\n",
" ProcessingOutput,\n",
")\n",
"import time \n",
"\n",
"timpstamp = str(time.time()).split('.')[0]\n",
"# SKlearnProcessor for preprocessing\n",
"output_prefix = f'{base_job_prefix}/outputs/{timpstamp}'\n",
"output_prefix = f'{base_job_prefix}/outputs'\n",
"output_s3_uri = f's3://{default_bucket}/{output_prefix}'\n",
"\n",
"class_selection = '13, 17, 35, 36, 47, 68, 73, 87'\n",
Expand Down Expand Up @@ -284,14 +282,21 @@
" \n",
" print(f\"file_name: {file['Key']}, size: {file['Size']}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:eu-west-1:470317259841:image/datascience-1.0"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand Down
Binary file removed 02_training/statics/Experiments.png
Binary file not shown.
Binary file removed 02_training/statics/HPO_experiments.png
Binary file not shown.
Binary file added 02_training/statics/hpo-experiment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading