This file contains 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
library(mlbench) | |
library(caret) | |
data(Sonar) | |
inTraining <- createDataPartition(Sonar$Class, p = 0.75, list = FALSE) | |
training <- Sonar[inTraining, ] | |
testing <- Sonar[-inTraining, ] | |
myTuneGrid <- expand.grid(n.trees = 500,interaction.depth = 11,shrinkage = 0.1) | |
fitControl <- trainControl(method = "repeatedcv", |
This file contains 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
#!/usr/bin/awk -f | |
# Convert the "svn log" output into a one liner format, which is easier to grep | |
# or use in scripts. Pipe "svn log" into this script | |
# When we get a line that starts with a revision number, put the data in variables | |
/^r[0-9]+/ { | |
rev=$1 | |
user=$3 | |
date=$5 |