Displaying 20 results from an estimated 1000 matches similar to: "training svm's with probability flag (re-send in plain text)"
2006 Aug 04
0
training svm's with probability flag
Hi-
I'm seeing some weirdness with svm and tune.svm that I can't figure out- was
wondering if anyone else has seen this? Perhaps I'm failing to make
something the expected class?
Below is my repro case, though it *sometimes* doesn't repro. I'm using
R2.3.1 on WindowsXP. I was also seeing it happen with R2.1.1 and have seen
it on 2 different machines.
 
data(iris)
attach(iris)
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
Just print the string you are asking to R to evaluate.  It doesn't make 
any sense as an R expression.  Fix that, and things will work.
Duncan Murdoch
On 27/10/2017 3:41 PM, Morkus via R-devel wrote:
> It can't be this hard, right? I really need a shove in the right direction here. Been spinning wheels for three days. Cannot get past the errors.
> 
> I'm doing something
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
Does it work if you supply the closing parenthesis on the call to boxM?
The parser says the input is incomplete and a missing closing parenthesis
would cause that error..
// create a string command with that variable name.String boxVariable =
"boxM(boxMVariable [,-5], boxMVariable[,5]";
// try to execute the command...
// FAILS with org.rosuda.REngine.Rserve.RserveException: eval
2017 Oct 29
0
Renjin?
Renjin is not R.??
Renjin is an R language interpreter written in Java.
It has become exceedingly obvious that you are making user
errors.??That's not a bug in the language.
If you want to use Renjin, there are mailing lists devoted to Renjin,
and also Stack Overflow and Renjin list questions that cover exactly
what you've asked about (loading packages in Renjin when Renjin is used
as a
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
On 28/10/2017 6:26 AM, Morkus wrote:
> I'm not sure what you mean. Could you please be more specific?
You were trying to eval an expression that you constructed in Java.  I 
was suggesting that before you eval it, you print it.
> 
> If I print the string, I get: *boxM(boxMVariable[, -5], boxMVariable[, 5])*
Right, that's what I was suggesting you do. Now you've fixed the
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
On 28/10/2017 7:12 AM, Morkus wrote:
> Thanks Duncan. Awesome ideas!
> 
> I think we're getting closer!
> 
> I tried what you suggested and got a possibly better error...
> .
> .
> .
> rConnection.assign("boxMVariable", myDf);
> 
> *String resultBV *= *"str(boxMVariable)"*; *// your suggestion.*
> 
> *RESULTING ERROR:*
> 
>
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
On 28/10/2017 8:59 AM, Morkus wrote:
> Hey Duncan,
> 
> Hard to debug? That's an understatement. Eyes bleeding....
> 
> In any case, I tried all your suggestions. To get "integer" for the 
> final column, I had to change the code to get integers instead of strings.
The last column in iris is actually a factor.  That's stored as an 
S3-classed integer vector
2017 Oct 29
3
Renjin?
Hi All,
OK, in the "back to the drawing board" department, I found what looks like a much better solution to using R in Java. Renjin.
Looking at the docs and then trying a quick example, didn't quite work.
Of course I'm missing something.
Although I'm telling the engine to require ("biotools") just like I would in R itself, when I get to the line of code that
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
I'm not sure what you mean. Could you please be more specific?
If I print the string, I get:  boxM(boxMVariable[, -5], boxMVariable[, 5])
From this code:
.
.
.
// assign the data to a variable.rConnection.assign("boxMVariable", myDf);
// create a string command with that variable name.String boxVariable = "boxM(boxMVariable[, -5], boxMVariable[, 5])";
2017 Oct 29
0
Cannot Compute Box's M (Three Days Trying...)
On 29/10/2017 7:26 AM, Morkus wrote:
> Thanks Duncan. I can't tell you how helpful all your terrific replies 
> have been.
> 
> I think the biggest surprise is that nobody appears to be using Java and 
> R together like I"m trying to do. I suppose it should be a surprise 
> since there are no books on the subject and almost no technical 
> documentation other than a
2017 Oct 27
4
Cannot Compute Box's M (Three Days Trying...)
It can't be this hard, right? I really need a shove in the right direction here. Been spinning wheels for three days. Cannot get past the errors.
I'm doing something wrong, obviously, since I can easily compute the Box's M right there in RStudio
But I don't see what is wrong below with the coding equivalent.
The entire code snippet is below. The code fails below on the call to
2010 Feb 23
0
BUG with LSSVM in R:
Hello,
I have noticed a bug with LSSVM implementation in R. It could be a bug with
the LSSVM itself that causes this problem.
I thought I should post this message to see if anyone else is familiar with
this problem and explain why the result is different for odd and even number
of cases.
Once the hyperplane is found using LSSVM, the prediction results vary when
you predict odd or even number of
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
Thanks Duncan. Awesome ideas!
I think we're getting closer!
I tried what you suggested and got a possibly better error...
.
.
.
rConnection.assign("boxMVariable", myDf);
String resultBV = "str(boxMVariable)";   // your suggestion.
RESULTING ERROR:
Error in format.default(nam.ob, width = max(ncn), justify = "left") :  invalid 'width' argument
(No idea
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
Thanks Duncan. I can't tell you how helpful all your terrific replies have been.
I think the biggest surprise is that nobody appears to be using Java and R together like I"m trying to do. I suppose it should be a surprise since there are no books on the subject and almost no technical documentation other than a few sites here and there.
-----
I originally had the "int" as the
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
Hey Duncan,
Hard to debug? That's an understatement. Eyes bleeding....
In any case, I tried all your suggestions. To get "integer" for the final column, I had to change the code to get integers instead of strings.
double[] d1 = ((REXPVector) ((RList) tableRead).get(0)).asDoubles();
double[] d2 = ((REXPVector) ((RList) tableRead).get(1)).asDoubles();
double[] d3 = ((REXPVector)
2007 Apr 29
1
randomForest gives different results for formula call v. x, y methods. Why?
Just out of curiosity, I took the default "iris" example in the RF
helpfile...
but seeing the admonition against using the formula interface for large data
sets, I wanted to play around a bit to see how the various options affected
the output. Found something interesting I couldn't find documentation for...
Just like the example...
> set.seed(12) # to be sure I have
2009 Feb 26
1
Random Forest confusion matrix
Dear R users,
I have a question on the confusion matrix generated by function randomForest. 
I used the entire data
set to generate the forest, for example:
> print(iris.rf) 
Call: 
 randomForest(formula = Species ~ ., data = iris, importance = TRUE,     
keep.forest = TRUE) 
confusion
           setosa versicolor virginica class.error
setosa         50          0         0        0.00
2004 Jun 16
2
gam
hi,
i'm working with mgcv packages and specially gam. My exemple is:
>test<-gam(B~s(pred1)+s(pred2))
>plot(test,pages=1)
when ploting test, you can view pred1 vs s(pred1, edf[1] ) & pred2 vs
s(pred2, edf[2] )
I would like to know if there is a way to access to those terms
(s(pred1) & s(pred2)). Does someone know how?
the purpose is to access to equation of smooths terms
2011 Feb 18
1
segfault during example(svm)
If do:
> library("e1071")
> example(svm)
I get:
svm> data(iris)
svm> attach(iris)
svm> ## classification mode
svm> # default with factor response:
svm> model <- svm(Species ~ ., data = iris)
svm> # alternatively the traditional interface:
svm> x <- subset(iris, select = -Species)
svm> y <- Species
svm> model <- svm(x, y) 
svm>
2008 Dec 13
2
weird pasting of ".value" when list is returned
could someone explain why the name of FPVAL gets " .value" concatenated 
onto it when the code below is run and temp is returned.
I've been trying to figure this out for too long. It doesn't matter when 
I put the FPVAL in the return statement. It happens regardless of
whether it's first or last.   Thanks.
f.lmmultenhanced <-
function(response, pred1, pred2)
{