Skip to content

Instantly share code, notes, and snippets.

@roycoding
roycoding / art.ipynb
Last active August 29, 2015 14:06
IPython Notebook for computer generated art.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@roycoding
roycoding / r_stl.py
Last active August 29, 2015 14:10 — forked from andreas-h/r_stl.py
# -*- coding: utf-8 -*-
import datetime
from numpy import asarray, ceil
import pandas
import rpy2.robjects as robjects
def stl(data, ns, np=None, nt=None, nl=None, isdeg=0, itdeg=1, ildeg=1,
nsjump=None, ntjump=None, nljump=None, ni=2, no=0, fulloutput=False):
@roycoding
roycoding / 4_core_attributes.md
Last active June 19, 2017 18:54
4 Core Attributes of a data scientist

4 Core attributes of a data scientist

Roy Keyes

17 Jan 2016 - This is a post on my blog.

Note: I wrote this short post a few years ago and recently found it floating around. It seems more obvious now (and probably trite), but I thought it was still worth posting on the old 'net.

  1. Thinking statistically. Things tend to come in distributions. Understanding this make a huge difference in how (data) problems are approached. See #2.
  2. Strong grasp of the fundamentals. By having a strong base of math, stats, experimentation, and computer science, the job of the data scientist is much easier. For a specific problem, the fundamentals may not be enough, but they will get you very far.
@roycoding
roycoding / remote_ds.md
Last active June 19, 2017 18:53
A year of working remotely

A year of working remotely

Roy Keyes

29 Feb 2016 - This is a post on my blog

October 2015 marked my first year of working as a data scientist on a remote team at Zoomer (we help restaurants deliver food, fast). I have always thought that remote work was an obvious choice given the penetration of the internet into all aspects of our lives. In this post I'm going to talk about some of the experiences I've had and lessons learned working on a remote data science team.

Zoomer's main offices are in Philadelphia and San Francisco, but, by the nature of our business, we are a fundamentally distributed company. While I live in San Francisco and work out of the SF office a few days a week, I spend most of the time working from my apartment, collaborating with my team remotely.

Remote data science is not fundamentally different than working on other remote teams, but it has its own set of challenges and difficulties. Done right, remote data s

@roycoding
roycoding / slots.md
Last active July 1, 2022 15:29
slots - A multi-armed bandit library in Python

Multi-armed banditry in Python with slots

Roy Keyes

22 Aug 2016 - This is a post on my blog.

I recently released slots, a Python library that implements multi-armed bandit strategies. If that sounds like something that won't put you to sleep, then please pip install slots and read on.

Some one armed bandits

Multi-armed bandits

@roycoding
roycoding / Intro to Neural Networks.ipynb
Created November 16, 2016 21:51
Neural Network in Python 3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am roycoding on github.
  • I am roycoding (https://keybase.io/roycoding) on keybase.
  • I have a public key ASCG1vUl8yOBMIxO_ZbxVQMM_o4o82YhmpLQ7lhGZiqtHAo

To claim this, I am signing this object:

@roycoding
roycoding / sandwich.py
Created October 5, 2017 20:46
Pandas sandwich: show first and last n lines of dataframe
def sandwich(df, rows=3):
'''
Display n rows of head and tail of dataframe.
Input:
df - dataframe of interest
rows - integer number of rows from each end of dataframe to display
Output:
dataframe
@roycoding
roycoding / Fastai_Colab_GPU_test.ipynb
Last active January 23, 2018 22:27
fast.ai on Google Colaboratory with GPU test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@roycoding
roycoding / Transfer_learning.ipynb
Created March 14, 2018 04:05
Transfer learning example (fast.ai Dogs vs Cats image classifier) on Google Colab
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.