Created
October 30, 2020 00:13
-
-
Save aagnone3/c28d28c6f7e8ff9a86fe8a78f1d46777 to your computer and use it in GitHub Desktop.
sf_crime_2.py
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 re | |
from datetime import datetime | |
from collections import Counter | |
from functools import partial | |
import urllib3.request | |
import warnings | |
warnings.simplefilter(action='ignore') | |
import joblib | |
import sklearn | |
import graphviz | |
import numpy as np | |
import pandas as pd | |
from sklearn import tree | |
from sklearn.metrics import ( | |
roc_curve, | |
confusion_matrix, | |
roc_auc_score, | |
precision_recall_curve, | |
auc | |
) | |
from dtreeviz import trees | |
from pandas_profiling import ProfileReport | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import plotly.express as px | |
import plotly.graph_objects as go | |
import plotly.figure_factory as ff | |
from plotly.subplots import make_subplots | |
import lightgbm as lgb | |
from shapely.geometry import Point | |
import geopandas as gpd | |
import geoplot as gplt | |
from fastai.tabular.all import ( | |
cont_cat_split, | |
TabularPandas, | |
Categorify, | |
FillMissing, | |
Normalize, | |
add_datepart | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment