Skip to content

Commit

Permalink
Update Training-models-in-SageMaker-notebooks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qualiaMachine authored Nov 6, 2024
1 parent 75a196d commit 1b05f0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions episodes/Training-models-in-SageMaker-notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ print(f"Instance Type: {local_instance}")

```

Notebook Instance 'Titanic-ML-Notebook' status: InService
Notebook Instance 'MyAwesomeTeam-ChrisEndemann-Titanic-Train-Tune-Xgboost-NN' status: InService
Instance Type: ml.t3.medium


Expand Down Expand Up @@ -261,6 +261,9 @@ print(f"Test Set Accuracy: {accuracy:.4f}")

```

Test Set Accuracy: 0.8156


## Training via SageMaker (using notebook as controller) - custom train.py script
Unlike "local" training (using this notebook), this next approach leverages SageMaker’s managed infrastructure to handle resources, parallelism, and scalability. By specifying instance parameters, such as instance_count and instance_type, you can control the resources allocated for training.

Expand Down Expand Up @@ -469,7 +472,7 @@ print(f"Test Set Accuracy: {accuracy:.4f}")

```

Test Set Accuracy: 0.7933
Test Set Accuracy: 0.8156


/home/ec2-user/anaconda3/envs/pytorch_p310/lib/python3.10/site-packages/xgboost/core.py:158: UserWarning: [21:13:21] WARNING: /workspace/src/collective/../data/../common/error_msg.h:80: If you are loading a serialized model (like pickle in Python, RDS in R) or
Expand Down

0 comments on commit 1b05f0b

Please sign in to comment.