Skip to content

Instantly share code, notes, and snippets.

@aagnone3
Created October 30, 2020 00:13
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 aagnone3/c28d28c6f7e8ff9a86fe8a78f1d46777 to your computer and use it in GitHub Desktop.
Save aagnone3/c28d28c6f7e8ff9a86fe8a78f1d46777 to your computer and use it in GitHub Desktop.
sf_crime_2.py
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