I am trying to generate a model via
caret package and I get some warnings which I cannot explain. Just to make my post reproductive I use as data frame the
data(iris) df=iris[,1:4] con = trainControl(method="cv", number=3) for_train = createDataPartition(df$Sepal.Length, p=.66, list=FALSE) train=df[for_train,] test=df[-for_train,] model = train(Sepal.Length ~., data = train, method = "ANFIS", trControl = con)
with the above code I get 7 Warnings :
In validate.params(object, newdata) : There are your newdata which are out of the specified range
What exactly are the warning messages?
Are these warnings a sign that I did not built my model correctly?
While I was waiting for a help about the warnings I tried to generate the model without the
caret package, with the use of the
df=iris[,1:4] train <- df[1 : 100, ] test <- df[101 : 150, 1 : 3] real.val <- matrix(df[101 : 150, 4], ncol = 1) my_range<-apply(train,2,range) method.type <- "ANFIS" control <- list(num.labels = 3, max.iter = 10, step.size = 0.01, type.tnorm = "MIN", type.snorm = "MAX", type.implication.func = "ZADEH", name = "iris") my_object <- frbs.learn(train, my_range, method.type, control) test_pr <- predict(my_object, test)
But still I get the same warnings and the
test_pr is characterized by only only value.