Skip to content

Instantly share code, notes, and snippets.

@cereniyim
Created May 30, 2020 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cereniyim/e3cf782765dde2640c63df9007a131f4 to your computer and use it in GitHub Desktop.
Save cereniyim/e3cf782765dde2640c63df9007a131f4 to your computer and use it in GitHub Desktop.
Imports of the 3rd Notebook
# visualization and manipulation libraries
import matplotlib.pyplot as plt
import seaborn as sns
from IPython.core.pylabtools import figsize
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 60)
%matplotlib inline
# to display visuals in the notebook
%config InlineBackend.figure_format='retina'
#to enable high resolution plots
# feature prepocessing and split
from sklearn.metrics import mean_squared_error
# machine Learning Models
from sklearn.ensemble import RandomForestRegressor
# to load machine learning model
import pickle
# to visualize a decision tree
import sklearn.tree as tree
import pydotplus
from sklearn.externals.six import StringIO
from IPython.display import Image
# LIME to explain predictions
import lime
import lime.lime_tabular
# to bypass warnings in section regarding previous imports
import warnings
warnings.filterwarnings('ignore')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment