This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parallel Cross-Validation Example | |
library(foreach) # install.packages('foreach') | |
library(caret) # install.packages('caret', dependencies = c("Depends", "Suggests")) | |
library(doParallel) # install.packages('doParallel') | |
registerDoParallel(makeCluster(4)) # Use 4 cores for parallel CV | |
data <- read.csv(…) # Assuming this is your dataset | |
cv <- caret::createFolds(nrow(data), k=10, list=T) # Create 10 folds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use C-a for the prefix | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
# Make the delay a little shorter | |
set -sg escape-time 1 | |
# Number windows starting with one | |
set -g base-index 1 |