Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gtesei committed Oct 16, 2015
1 parent 1188113 commit 514b18a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ Once installed, you just need to load the package by using the R ```library``` f
```r
library(fastfurious)

##############
## TUNE
##############
##########################
## TUNE / TRAIN / PREDICT
##########################
controlObject = caret::trainControl(method = "repeatedcv", repeats = 1, number = 4 , summaryFunction = twoClassSummary , classProbs = TRUE)
l = ff.trainAndPredict.class (Ytrain=Ytrain ,
Xtrain=Xtrain ,
Expand All @@ -81,9 +81,9 @@ pred = l$pred
pred.prob = l$pred.prob
secs = l$secs

##############
##########################
## ENSEMB
##############
##########################
index = caret::createMultiFolds(y=Ytrain, controlObject$number, controlObject$repeats)
indexOut <- lapply(index, function(training, allSamples) allSamples[-unique(training)], allSamples = seq(along = Ytrain))
controlObject = trainControl(method = "repeatedcv",
Expand Down

0 comments on commit 514b18a

Please sign in to comment.