Displaying 2 results from an estimated 2 matches for "mysuccess".
Did you mean:
my_success
2004 Sep 06
1
rpart problem
...ethod returns only the root node (i.e. no split is made). The
following code recreates the issue using simulated data :
# Create a 2 level factor with group 1 probability of success 90% and group
2 60%
tmp1 <- as.factor((runif (1000) <= 0.9))
tmp2 <- as.factor((runif (1000) <= 0.5))
mysuccess <- as.factor(c(tmp1, tmp2))
mygroup <- as.factor(c(rep (1,1000), rep (2,1000)))
table (mysuccess, mygroup)
chisq.test (mysuccess, mygroup)
# p-value = < 2.2e-16
myrpart <- rpart (mysuccess ~ mygroup)
myrpart
# rpart does not provide splits !!
If I change the parameter in the set...
2006 Sep 13
1
Net::HTTPResponse
...documented, and in the code is commented as "internal use only" - which
suggests it might just change in the future without warning.
The second, admitedly evil idea was to stub "kind_of?" but that doesn''t seem
to work with Mocha.
I was left having to do this :
class MySuccess < Net::HTTPSuccess
def initialise
end
end
...
success = MySuccess.new
success.expects(:body).returns("this is the body")
....
Which is a little bit frustrating - it''s to avoid having to do this type of
code I''m using Mocha in the first place !
Any ideas ?
Than...