Last active
May 16, 2022 11:36
-
-
Save audhiaprilliant/0a33636d7af3ec9c9ab6f3a719a84819 to your computer and use it in GitHub Desktop.
End to end machine learning model deployment using flask
This file contains hidden or 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 frame manipulation | |
| import pandas as pd | |
| # Matrices operation | |
| import numpy as np | |
| # Data visualization with plotnine | |
| from plotnine import * | |
| import plotnine | |
| # Data visualization with matplotlib | |
| import matplotlib.pyplot as plt | |
| # Data partitioning and cross validation | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.model_selection import KFold | |
| # Grid-search | |
| from sklearn.model_selection import GridSearchCV | |
| # Evaluation metrics | |
| from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score | |
| from sklearn.metrics import make_scorer | |
| # XGBoost ML model | |
| import xgboost as xgb | |
| # Lightweight pipelining in Python | |
| import joblib | |
| # Ignore warnings | |
| import warnings | |
| warnings.filterwarnings('ignore', category = FutureWarning) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment