Displaying 2 results from an estimated 2 matches for "outertest".
Did you mean:
outermost
2018 Apr 14
2
Efficient way to subset rows in R for dataset with 10^7 columns
I have a data.table with dimensions 100 by 10^7.
When I do
trainIndex <-
caret::createDataPartition(
df$status,
p = .9,
list = FALSE,
times = 1
)
outerTrain <- df[trainIndex]
outerTest <- df[-trainIndex]
Subsetting the rows of df takes over 20 minutes.
What is the best way to efficiently subset this?
Thanks!
[[alternative HTML version deleted]]
2018 Apr 14
0
Efficient way to subset rows in R for dataset with 10^7 columns
...>
>> > trainIndex <-
>> > caret::createDataPartition(
>> > df$status,
>> > p = .9,
>> > list = FALSE,
>> > times = 1
>> > )
>> > outerTrain <- df[trainIndex]
>> > outerTest <- df[-trainIndex]
>> >
>> >Subsetting the rows of df takes over 20 minutes.
>> >
>> >What is the best way to efficiently subset this?
>> >
>> >Thanks!
>> >
>> > [[alternative HTML version deleted]]
>> >
>...