Displaying 2 results from an estimated 2 matches for "sepallength".
Did you mean:
sepal_length
2011 Apr 06
2
Help in kmeans
...ng proper results for me. But, in my application we generate
the R commands dynamically and there was a requirement that the column names
will be sent instead of column indices to the R commands.Hence, to
incorporate this, i tried using the R commands in the following way.
kmeans_model<-kmeans((SepalLength+SepalWidth+PetalLength+PetalWidth),centers=3)
or
kmeans_model<-kmeans(as.matrix(SepalLength,SepalWidth,PetalLength,PetalWidth),centers=3)
In both the ways, we found that the results are different from what we saw
with the first command (with column indices).
can you please let us know what...
2009 Nov 25
0
predict(): NoSuchMethodError
...e)
cl <- myAlg(Formula, data = Data)
And this is the error I'm getting:
Error in .jnew("weka/core/Attribute", attname[i]) :
java.lang.NoSuchMethodError: <init>
Here is the printout of the a working case:
cl = Linear Regression Model
petallength =
1.748 * sepallength +
-1.4174 * sepalwidth +
-2.1294
ClusterData[j,] = sepallength sepalwidth petallength petalwidth class
5.7 2.6 NA 1
1
petallength = 4.148813
And the non-working case:
cl = Linear Regression Model
pet...