Skip to content

Commit 2e21404

Browse files
authored
Merge pull request #6 from absynthe/04_training_pipeline
Cleaning pipeline + HPO on training
2 parents 0b58a2c + ec68494 commit 2e21404

22 files changed

+371
-1356
lines changed

01_preprocessing/data_preprocessing.ipynb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"metadata": {},
8282
"outputs": [],
8383
"source": [
84+
"%%time\n",
8485
"import sagemaker\n",
8586
"from sagemaker import get_execution_role\n",
8687
"import boto3\n",
@@ -91,7 +92,7 @@
9192
"role = sagemaker.get_execution_role()\n",
9293
"\n",
9394
"default_bucket = sagemaker_session.default_bucket() # or use your own custom bucket name\n",
94-
"base_job_prefix = \"preprocess\" # or define your own prefix"
95+
"base_job_prefix = \"cv-sagemaker-immersionday\" # or define your own prefix"
9596
]
9697
},
9798
{
@@ -217,11 +218,8 @@
217218
" ProcessingInput,\n",
218219
" ProcessingOutput,\n",
219220
")\n",
220-
"import time \n",
221-
"\n",
222-
"timpstamp = str(time.time()).split('.')[0]\n",
223221
"# SKlearnProcessor for preprocessing\n",
224-
"output_prefix = f'{base_job_prefix}/outputs/{timpstamp}'\n",
222+
"output_prefix = f'{base_job_prefix}/outputs'\n",
225223
"output_s3_uri = f's3://{default_bucket}/{output_prefix}'\n",
226224
"\n",
227225
"class_selection = '13, 17, 35, 36, 47, 68, 73, 87'\n",
@@ -284,14 +282,21 @@
284282
" \n",
285283
" print(f\"file_name: {file['Key']}, size: {file['Size']}\")"
286284
]
285+
},
286+
{
287+
"cell_type": "code",
288+
"execution_count": null,
289+
"metadata": {},
290+
"outputs": [],
291+
"source": []
287292
}
288293
],
289294
"metadata": {
290295
"instance_type": "ml.t3.medium",
291296
"kernelspec": {
292297
"display_name": "Python 3 (Data Science)",
293298
"language": "python",
294-
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:eu-west-1:470317259841:image/datascience-1.0"
299+
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
295300
},
296301
"language_info": {
297302
"codemirror_mode": {

02_training/statics/Experiments.png

-45 KB
Binary file not shown.
-73.4 KB
Binary file not shown.
85.4 KB
Loading

0 commit comments

Comments
 (0)