Displaying 2 results from an estimated 2 matches for "petalwidth".
Did you mean:
  petal_width
  
2011 Apr 06
2
Help in kmeans
...y 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 is going wrong here.If so, can you...
2009 Nov 25
0
predict(): NoSuchMethodError
...quot;, 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
      petalwidth =
           0.8948 * class +
           0.3031
ClusterData[j,] = sepallength sepalwidth petallength petalwidth c...