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
def main(args): | |
pass | |
def make_wide(formatter, width=120, max_help_position=42): | |
""" | |
Increase space between arguments and help text, if possible. | |
See: https://stackoverflow.com/questions/5462873/ | |
""" | |
try: |
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
#!/usr/bin/env python3 | |
import os | |
import json | |
import random | |
import zipfile | |
config = { | |
"color": "red", | |
"amount": 42.24, |
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 json | |
import random | |
import asyncio | |
import argparse | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
from functools import partial | |
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
#!/usr/bin/env python | |
# requires | |
# Creates a requirements.txt file using pip freeze. | |
# | |
# Author: Benjamin Bengfort <benjamin@bengfort.com> | |
# Created: Fri Jan 22 08:50:31 2016 -0500 | |
# | |
# Copyright (C) 2016 Bengfort.com | |
# For license information, see LICENSE.txt | |
# |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from sklearn.pipeline import Pipeline | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.decomposition import LatentDirichletAllocation | |
from yellowbrick.datasets import load_hobbies | |
class LDAViz(object): | |
""" |
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
gource -1280x720 --camera-mode track --seconds-per-day 4 --auto-skip-seconds 1 \ | |
--file-idle-time 0 --key --title "Yellowbrick" -o - | ffmpeg -y -r 60 \ | |
-f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast \ | |
-pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4 |
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
#!/usr/bin/env python3 | |
import os | |
import glob | |
import argparse | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt |
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
type Bitmask uint8 | |
const ( | |
F0 bitmask = 1 << iota | |
F1 | |
F2 | |
) | |
func Set(b, flag Bitmask) Bitmask { return b | flag } | |
func Clear(b, flag Bitmask) Bitmask { return b &^ flag } |
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
from yellowbrick.features.projection import ProjectionVisualizer | |
from sklearn.pipeline import Pipeline | |
from sklearn.decomposition import PCA | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.datasets import make_regression | |
class Visualizer(ProjectionVisualizer): |