Skip to content

Instantly share code, notes, and snippets.

View statsmaths's full-sized avatar

Taylor Arnold statsmaths

View GitHub Profile
@statsmaths
statsmaths / gpu_setup.md
Last active August 30, 2021 23:33
Setting up Nvidia Titan X on Ubuntu 17.10

Deep Learning Set-up

Here, I am documenting the steps I took to get my GPU set up. I do not expect these to be interesting to anyone else, but am making them public in case they may help anyone. Note that I did not start with a cold system, so these notes are likely incomplete. Summary of the fully installed system:

  • OS: Ubuntu 17.10
  • Card: TITAN Xp (memory: 12 GB)
  • Driver: nvidia-387/artful (387.34-0ubuntu0~gpu17.10.2)
#!/usr/bin/env python
""" Parses a directory of XML files and saves delimited parsed records
Set the DIR_IN variable to the location where you have a set of XML
records. This script will then save a pipe separated file for each
input file. There is one row per token in the input file, and three
columns of data: the raw token, the lemmatized form of the token, and
a part of speech tag. The part of speech tag are only the basic universal
ones (VERB, NOUN, DET, ect.) not the full Penn TreeBank codes. The benefit
of using spacy as a library is that is has a much greater speed when compared
#' Title: Exploratory data analysis - Agha Shahid Ali
#' Author: Taylor Arnold (taylor.arnold@acm.org)
#' Created: 2015-07-29 18:37
#' Description: Basic exploratory data analysis of the
#' poems of Agha Shahid Ali.
library(syuzhet)
# Read in the lines and clean some basic characters
poems <- scan("~/Desktop/CMl.txt", what="character", sep="\n")
#' Title: Facebook Page API Downloads
#' Author: Taylor Arnold (taylor.arnold@acm.org)
#' Created: 2015-07-28 20:50
#' Updated: 2015-08-15 15:43
#' Description: Cycle over the Facebook API to grab all the
#' of the project page posts and save as a
#' single csv file.
# You need to fill these three fields in appropriately
access_token = ""
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<script src='http://ramnathv.github.io/rCharts/libraries/widgets/polycharts/js/polychart2.standalone.js' type='text/javascript'></script>
<style>
.rChart {
display: block;