Skip to content

Instantly share code, notes, and snippets.

View jrumbut's full-sized avatar

Joshua Rumbut jrumbut

  • UMass Chan Medical School
  • Worcester, MA
View GitHub Profile
@jrumbut
jrumbut / CopyOnConditional.gs
Created June 29, 2016 13:32
Google Sheets Copy On Condition
function copyOnConditional() {
var ss=SpreadsheetApp.getActiveSpreadsheet();// some global variables
var master = ss.getSheetByName('Raw Data');
var colWidth = master.getMaxColumns();
//function copyRowsOnCondition() {
var data = master.getDataRange().getValues();
for(n=2;n<data.length;++n){
@jrumbut
jrumbut / nnet.R
Created December 5, 2017 21:43 — forked from primaryobjects/nnet.R
Neural network (nnet) with caret and R. Machine learning classification example, includes parallel processing.
library(caret)
library(doParallel)
registerDoParallel(cores = 2)
# Read data.
data <- read.csv('train.csv')
test <- read.csv('test.csv')
# Set classification column to factor.