Displaying 2 results from an estimated 2 matches for "modellist".
Did you mean:
modelist
2006 Jul 20
3
sort_by with via a parent models child
I am having a problem with ruby''s sort_by function. I want to sort a
list of parent model objects based on the children of the parent models.
Normally you might say sortedList = modelList.sort_by { |model|
model[''someAttribute''] }
What I am tring to do is
sortedList = modelList.sort_by{ |model| model.children.find(:first,
order=>"price desc" ).price}
This doesn''t seem to have an effect on the list returned. Does anyone
here have any exp...
2011 Nov 30
1
glm step() fkt
Hi volks,
i have a question about the step() fkt. Is there a possibility to save the
last model generated from this method. I have a loop and so i generate 100
different models with the step fkt and i want to know which model is the
most common.
CODE:
...
missStep -> numeric(100)
for (j in 1:100) {
trainindex <- sample(c(1:462),300)
train <- data[trainindex,]
test <-