Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MassimoSporchia/34a16daaba9f0cdb9768f227231e3c93 to your computer and use it in GitHub Desktop.
Save MassimoSporchia/34a16daaba9f0cdb9768f227231e3c93 to your computer and use it in GitHub Desktop.
1. pip install jupyterlab
pip install tensorflow boto3 sagemaker
2. Then type “jupyter Lab”, the notebook should open in the browser
1. import tensorflow as tf
msg = tf.constant('Ciao mondo')
tf.print(msg)
3. Check that everything works
4. Now create a new Jupyter Notebook
1. Download this: LINK (https://raw.githubusercontent.com/aws/amazon-sagemaker-examples/master/introduction_to_applying_machine_learning/breast_cancer_prediction/Breast%20Cancer%20Prediction.ipynb)
2. Modify the Setup terminal
1. role = sagemaker.get_execution_role()
iam = boto3.client('iam')
role = iam.get_role(RoleName='sagemaker-vmware-test')['Role']['Arn']
3. Modify the os.join with "/" (because Windows...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment