Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gtesei committed Oct 2, 2015
1 parent 433a886 commit f70d138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/featureEncode.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ ff.encodeCategoricalFeature = function(data.train ,
}

## reassembling
testdata = mm[1:(length(data.test)),]
traindata = mm[((length(data.test))+1):(dim(mm)[1]),]
testdata = mm[1:(length(data.test)),,drop=F]
traindata = mm[((length(data.test))+1):(dim(mm)[1]),,drop=F]

return(list(traindata = traindata ,testdata = testdata))
}
Expand Down

0 comments on commit f70d138

Please sign in to comment.