Skip to content

Instantly share code, notes, and snippets.

View arnawldo's full-sized avatar

Arnold Taremwa arnawldo

  • OpenInvest
  • Kampala
View GitHub Profile
#!/bin/bash
mkdir example-dir
touch test.py
cp test.py example-dir/test.py
cd example
ls -al | grep "\.py$"
@arnawldo
arnawldo / hw2_skeleton
Last active June 13, 2017 15:13
Skeleton for hw2
# uses python3
import sys
import numpy as np
# helper functions
def est_class_mean(x, y, label):
"""Given n * d numpy array of predictors, n * 1 array of labels and class label of interest,
return empirical mean for each variable in given class