Displaying 2 results from an estimated 2 matches for "apresley".
Did you mean:
presley
2012 Feb 06
1
RandomForest ... Always Returning a 1?
We have a pretty simple R forecasting problem, using randomForest. Our
script is below. We have data with about 6 columns, and 625 rows to do the
training on, and then we're trying to forecast 90 or so rows.
The x matrix has 3 years worth of sales data, starting at 6:15am. However,
for some reason, it's always returning a "1", when predicting any data.
I've tried
2011 Jan 03
1
randomForest speed improvements
Hi there,
We're trying to use randomForest to do some predictions. The test-harness
for our code is pretty straightforward:
library ('randomForest');
data202 <- read.csv ("random.csv", header=TRUE);
x<- data202[1:50000,1:6];
y<- data202[1:50000,8];
y<- y[,drop=TRUE];
x2 <- data202[50001:60000,1:6];
y2 <- data202[50001:60000,8];
y2 <-