I'm trying to run frbs package in order to solve a classification problem, taking iris dataset as an example.
My dataset (Dataset_match) contains 9 input variables (all numeric), 1 binary output variable and 27 196 observations.
I've split the data in the following manner:
data.train<-Dataset_match[1 : 17200, ]
data.test<-Dataset_match[17201 : 27196, 1:9]
data.real<-matrix(Dataset_match[17201 : 27196, 10],ncol = 1)
range.data.input<-apply(Dataset_match[, -ncol(Dataset_match)], 2, range)
The method and its parameters were defined as follows:
method.type <- "FRBCS.W"
control <- list(num.labels = 15, type.mf = "GAUSSIAN", type.tnorm = "MIN",type.snorm = "MAX", type.implication.func = "ZADEH")
But when I try to generate the model, by using:
object.cls <- frbs.learn(data.train, range.data.input, method.type, control)
I get the following error:
Error in MF.temp[m, ] : incorrect number of dimensions.
Can someone please give me some clue on this?
I'm not very at ease with R and I can't find much information about the package in question.