search for: creategrid

Displaying 6 results from an estimated 6 matches for "creategrid".

2013 Feb 12
1
caret: Errors with createGrid for rf (randomForest)
When I try to crate a grid of parameters for training with caret I get various errors: ------------------------------------------------------------ > my_grid <- createGrid("rf") Error in if (p <= len) { : argument is of length zero > my_grid <- createGrid("rf", 4) Error in if (p <= len) { : argument is of length zero > my_grid <- createGrid("rf", len=4) Error in if (p <= len) { : argument is of length zero The doc...
2013 Feb 13
2
CARET: Any way to access other tuning parameters?
...example, for the method randomForest one can tune mtry in the call to train. But the function call to train random forests in the original package has many other parameters, e.g. sampsize, maxnodes, etc. Is there **any** way to access these parameters using train in caret? (Is the function caret::createGrid limited to the list of parameters specified in the caret documentation, it's not super clear if the list of parameter is for all the caret APIs). Thanks, James, [[alternative HTML version deleted]]
2013 Mar 06
1
CARET and NNET fail to train a model when the input is high dimensional
...t;cv", number=3, preProcOptions=NULL, classProbs = TRUE, summaryFunction = twoClassSummary) trX <- data.frame(replicate(nR, rnorm(nCol))) trY <- runif(1)*trX[,1]*trX[,2]^2+runif(1)*trX[,3]/trX[,4] trY <- as.factor(ifelse(sign(trY)>0,'X1','X0')) my.grid <- createGrid(method.name, grid.len, data=trX) my.model <- train(trX,trY,method=method.name,trace=FALSE,trControl=myCtrl,tuneGrid=my.grid, metric="ROC") print("Done") The error I get is: task 2 failed - "arguments imply differing number of rows: 1334, 666" However, everythi...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...ntrol} created") - evt.skip - end - - evt_grid_cell_change() do |evt| - set_status_text("Cell #{evt.get_row} x #{evt.get_col} has changed") - end - end - - # Create a wxGrid object - def make_grid(panel) - @grid = Wx::Grid.new(panel, -1) - - # Then we call CreateGrid to set the dimensions of the grid - # (11 rows and 12 columns in this example) - @grid.create_grid( 20, 12 ) - @grid.set_default_cell_background_colour(Wx::WHITE) - # We can set the sizes of individual rows and columns - # in pixels, and the label value string - @grid.set_row_size...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...ntrol} created") + evt.skip + end + + evt_grid_cell_change() do |evt| + set_status_text("Cell #{evt.get_row} x #{evt.get_col} has changed") + end + end + + # Create a wxGrid object + def make_grid(panel) + @grid = Wx::Grid.new(panel, -1) + + # Then we call CreateGrid to set the dimensions of the grid + # (11 rows and 12 columns in this example) + @grid.create_grid( 20, 12 ) + @grid.set_default_cell_background_colour(Wx::WHITE) + # We can set the sizes of individual rows and columns + # in pixels, and the label value string + @grid.set_row_size...
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi, Thanks to the newly added event handlers for Wx::Grid in the 0.6.0 release, I can now provide a much slicker intreface to my "data widgets" which heavily rely on that control. However, I haven''t quite figured out how to programmatically scroll to the last row of a populated grid (actually, the first empty row). So say that I have a grid with 200 rows only 20 of which