Skip to content

Instantly share code, notes, and snippets.

Charles Newey charlienewey

View GitHub Profile
@charlienewey
charlienewey / GradientBoosting.ipynb
Created Dec 14, 2018
Rudimentary gradient boosting implementation
View GradientBoosting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View schedule.tsv
type stop|Southampton|0 stop|Neweys|58 stop|Rousharps|95 stop|Rougets|110
C 2017-12-22 16:00 2017-12-22 17:30 - -
S 2017-12-23 18:45 - 2017-12-23 20:45 -
C - 2017-12-23 19:20 2017-12-23 20:00 -
C - - 2017-12-24 14:15 2017-12-24 14:25
S - - 2017-12-24 15:00 2017-12-24 15:10
C - - 2017-12-24 22:00 2017-12-24 21:50
S - 2017-12-24 22:45 2017-12-24 22:35
C - 2017-12-25 10:00 2017-12-25 08:45 -
S - 2017-12-25 16:00 2017-12-25 15:00 -
@charlienewey
charlienewey / keybase.md
Last active Aug 1, 2017
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am charlienewey on github.
  • I am cn_ (https://keybase.io/cn_) on keybase.
  • I have a public key ASAxWKkg_qSGU5Y90rHM8Mb8agyt2d8yVE6bW-3FWpFDnQo

To claim this, I am signing this object:

@charlienewey
charlienewey / Exploratory+Analysis.ipynb
Created Feb 12, 2017
Exploratory analysis on a dataset of job adverts
View Exploratory+Analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@charlienewey
charlienewey / posterior_surface.m
Created Nov 5, 2016
Plotting a multivariate Bayesian prior probability
View posterior_surface.m
% Q11: Compute and plot a 3-d graph of the posterior probability of one cls
figure;
xs = -5:0.2:5;
[X1, X2] = meshgrid(xs, xs);
% My method
%numerator = ((1/2) * mvnpdf([X1(:), X2(:)], m2', C));
%denominator = ((1/2) * mvnpdf([X1(:), X2(:)], m1', C)) + ((1/2) * mvnpdf([X1(:), X2(:)], m2', C));
%p_wj = numerator ./ denominator;
%p_wj = reshape(p_wj, length(xs), length(xs));
@charlienewey
charlienewey / standard_response_to_mac_bashing.md
Created Feb 18, 2015
Standard Response to People Bashing OS X
View standard_response_to_mac_bashing.md

I'm not an Apple evangelist - I use a lot of different operating systems (FreeBSD, Arch Linux, Ubuntu, OS X, etc) at home and at work - I just happen to use OS X sometimes (and like it).

OS X is actually a pretty good operating system (the only major caveat to this being the filesystem, which is pants):

  • The underlying OS is essentially a fork of BSD/NeXTStep - BSD is (very) well known for being stable, fast, and memory-efficient. OS X has absorbed many of these traits
  • The last few versions of OS X are Unix certified - and because Darwin is based on BSD, it's also POSIX compliant... which means it's pretty much the same to use as on the command-line many other Unix systems
  • The OS will run most software you throw at it - certainly most things that on a Linux machine with the help of brew or port. I've never had any significant problems, and I've been using my laptop for software development for several years. OS X is also very
@charlienewey
charlienewey / monty.py
Last active Nov 14, 2018
Monty Hall simulation in Python
View monty.py
import random
class Door(object):
def __init__(self, has_car):
self.has_car = has_car
self.selected = False
class Game(object):
def __init__(self):
You can’t perform that action at this time.