Skip to content

Instantly share code, notes, and snippets.

import os
import random
from openai import OpenAI
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
survey_options = [
"Help Scout",

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ngould
ngould / py.test output
Created August 29, 2015 23:28
sklearn-pmml test output (2015.08.29)
============================================================================= test session starts ==============================================================================
platform darwin -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2
rootdir: /Users/nathangould/workspace/sklearn-pmml, inifile:
collected 9 items
sklearn_pmml/convert/test/test_decisionTreeClassifierConverter.py ...FF
sklearn_pmml/convert/test/test_derived_fields.py .
sklearn_pmml/convert/test/test_gradientBoostingConverter.py ..
sklearn_pmml/convert/test/test_randomForestConverter.py E
@ngould
ngould / cornell_meng
Last active August 29, 2015 13:57
Correspondence w/ Cornell regarding M.Eng.
############## MY QUESTIONS ###############
Regarding the course listings, I'm trying to get a better understanding of
the variety and flexibility in the M.Eng. curriculum. Here are a few specific questions:
- Are all courses available to M.S. students also available to M.Eng. students?
- What courses are required? From the website, I gather that "Entrepreneurial Life"
and the "M.Eng. Project" are the only two required courses. Is that correct?
@ngould
ngould / Unprincipled PCA article
Created February 16, 2014 14:16
Cool R article/tutorial on PCA pitfalls that I did as an exercise.
# Code below is based on the tutorial here:
#
# http://www.r-bloggers.com/unprincipled-component-analysis/
#
# Load and prepare the data
urlBase <- 'http://www.win-vector.com/dfiles/PCA/'
pv <- read.table(paste(urlBase, 'ProxyVariables.csv', sep=''),
sep=',', header=T, comment.char='')