Skip to content

Instantly share code, notes, and snippets.

@findtharun
Created June 7, 2020 06:38
Show Gist options
  • Save findtharun/34eefbef99ac75b772ece5ef3dd5da29 to your computer and use it in GitHub Desktop.
Save findtharun/34eefbef99ac75b772ece5ef3dd5da29 to your computer and use it in GitHub Desktop.
bucket = 'testawslearn'
prefix = 'git'
# Define IAM role
import boto3
import re
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
import sagemaker
from sagemaker import get_execution_role
from sagemaker.predictor import csv_serializer
role = get_execution_role()
#reading the dataset
dataset=pd.read_csv('s3://testawslearn/iris.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment