This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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']] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
NewerOlder