Skip to content

Instantly share code, notes, and snippets.

View bnaul's full-sized avatar

Brett Naul bnaul

View GitHub Profile
import tensorflow as tf
from tensorflow.contrib import keras
from tensorflow.examples.tutorials.mnist import input_data
from dask.multiprocessing import get as mp_get
from distributed import Client
from functools import partial
from sklearn.model_selection import ParameterGrid
from concurrent.futures import ThreadPoolExecutor
import keras
def f():
# NOTE: removing this line causes the `get_weights` call later to fail
# The initialization performed in `get_session` is important somehow?
print('Info:', keras.backend.get_session(), keras.backend.get_session().graph)
model = keras.models.Sequential()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from bokeh.layouts import row
from bokeh.models.widgets import CheckboxGroup
from bokeh.plotting import figure, show
from bokeh.core.json_encoder import serialize_json
from bokeh.document import Document
from bokeh.util.serialization import make_id
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Persona Report</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Notebook</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
We can't make this file beautiful and searchable because it's too large.
tabblk2010,stname,ctyname,trctname,bgrpname,stplcname,zctaname
200910500001000,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001001,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001002,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001003,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001004,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001005,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001006,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roeland Park city, KS",66205
200910500001007,Kansas,"Johnson County, KS","500 (Johnson, KS)","1 (Tract 500, Johnson, KS)","Roelan