View .travis.yml
# Thanks to jtilly (https://github.com/jtilly/R-travis-container-example/blob/master/.travis.yml) for the inspiration... has since been slightly modified! | |
# Requires the generation of a GITHUB_TOKEN to allow Travis to access the repo. See here: https://bookdown.org/yihui/blogdown/travis-github.html | |
language: r | |
pandoc_version: 2.2.1 | |
dist: trusty | |
sudo: false | |
branches: | |
only: |
View compute.R
## Matt Galloway | |
## this file will be sent to each core | |
#--------------------------------------------------------------- | |
# simulation parameters | |
# THESE MUST BE IDENTICAL IN BOTH FILES | |
reps = 50 | |
N = 200 |
View RandomForest.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View VGG.R
## Simple example to create a VGG-like convolutional NN in R | |
## This requires the Keras library and a Tensorflow installation: | |
## https://rstudio.github.io/keras/index.html | |
## | |
## This tutorial was taken from: https://rstudio.github.io/keras/articles/sequential_model.html | |
library(keras) | |
# generate dummy data |
View linear.R
## weighted ridge regression | |
linearr = function(X, y, lam = 0, weights = NULL, intercept = TRUE, | |
kernel = FALSE) { | |
# checks | |
n = dim(X)[1] | |
p = dim(X)[2] | |
if (is.null(weights)) { |
View Slack.py
# This is a simple script that will allow Slack to notify you when your script is finished running. | |
# Specifically, you will receive a message that says: "Script Complete". | |
# But first, you need to generate a Slack token. | |
# See here: https://api.slack.com/tokens | |
from slacker import Slacker | |
Token = "PLACE TOKEN HERE" |
View ImageNetClassifier.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View SampleHomework.Rmd
--- | |
title: "R Markdown Homework Template" | |
author: "NAME HERE" | |
affiliation: "UNIVERSITY HERE" | |
abstract: | |
thanks: | |
keywords: | |
date: \today | |
output: | |
pdf_document: |