Skip to content

Instantly share code, notes, and snippets.

View harsha89's full-sized avatar
🎯
Focusing

Harsha Kumara harsha89

🎯
Focusing
View GitHub Profile
pipeline {
agent any
stages {
stage('Deploy Web app to Azure'){
when { changeset "*/component_a/**"} //Will execute your steps if any file change inside the component_a directory
steps {
//Your steps
}
}
from flask import Flask, jsonify, request
import pandas as pd
import joblib
app = Flask(__name__)
@app.route("/predict", methods=['POST'])
def do_prediction():
json = request.get_json()
model = joblib.load('model/rf_model.pkl')
# Data Manipulation libraries
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.neural_network import MLPRegressor
import joblib
df = pd.read_csv('tp3_boston_data.csv') # Load the dataset
df_x = df[['crim', 'zn', 'indus', 'chas', 'nox', 'rm', 'age', 'dis', 'rad', 'tax', 'ptratio', 'lstat']]
df_y = df[['medv']]
import twint
import sys
c = twint.Config()
c.Search = "cancer AND covid-19"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"
import twint
import sys
c = twint.Config()
c.Search = "cancer"
c.Store_csv = True
c.User_full = True
c.Output = "tweets_cancer_intermediate.csv"
c.Resume = 'tweets_cancer_resume_intermediate.csv'
c.Since = "2020-02-23 00:00:00"