Open AI-Surfing opened 7 years ago
when run demo with 3. Prediction using fuzzy nearest neighbor classifiers got error bellow, wish yr reply @janusza
Examples: Data analysis using the wine dataset
control.frnn.o <- list(m = 2,
type.membership = "gradual")
predValues.frnn.o <- C.FRNN.O.FRST(wine.tra.is,
newdata = wine.tst.fs,
control = control.frnn.o)
Error in dt.ori[i, j] - range.data[1, j] :
non-numeric argument to binary operator
I execute the following code in RStudio, but have a error "Error in x - temp.obj : non-numeric argument to binary operator"
Although the function unclass has tranform the values of the decision attribute into numerics, the parameter indx.nominal = c(5) in SF.asDecision.Table designates it as the nominal variable again. When execute the C.FRNN.FRST function, the error occured. When comment out the parameter indx.nominal = c(5), the codes could be executed normally, but the classification results is very poor.There are three classes in the decision attribute, the predicted class only have two.