Displaying 1 result from an estimated 1 matches for "myalg".
Did you mean:
myagg
2009 Nov 25
0
predict(): NoSuchMethodError
...iving me the problem:
NewClusterData[j,att] <- predict(cl,newdata = ClusterData[j,],type="class")
Here is the code for the arguments:
algName <- "LinearRegression"
Formula <- as.formula(paste(as.name(att), " ~ ", paste(otherAtts, collapse=
"+")))
myAlg <- get(algName)
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 =...