Skip to content

Instantly share code, notes, and snippets.

View findtharun's full-sized avatar
🎯
Learning

Tharun Kumar Tallapalli findtharun

🎯
Learning
View GitHub Profile
estimator.fit({'train':s3_input_train,'validation':s3_input_validation})
endpoint_name = sess.endpoint_from_job(
job_name=job_name,
initial_instance_count=1,
instance_type='ml.m4.xlarge',
deployment_image=image_name,
role=role
)
print ('endpoint name: {0}'.format(endpoint_name))
import os
import io
import boto3
import json
import csv
# grab environment variables
ENDPOINT_NAME = os.environ['ENDPOINT_NAME']
runtime= boto3.client('runtime.sagemaker')
import numpy as np
import pandas as pd
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__,template_folder='templates')
model = pickle.load(open('model.pkl', 'rb'))
@app.route('/')
if __name__ == '__main__':
app.run(host='0.0.0.0')
import sweetviz as sv
sweetviz_eda=sv.analyze(data)
sweetviz_eda.show_html()
eda=sv.analyze([data,"Data"],target_feat='Occupancy')
eda.show_html()
import pandas_profiling
data.profile_report().to_file("pandas_profile_report.html")
from quickda.explore_data import *
explore(data)
from quickda.explore_numeric import *
eda_num(data, method='correlation')