how can I fix this error.I tried to fix the error on my own but yet unsuccessful can any one help me out?
library(caret)
diabet<-read.csv(file.choose(),header = T,sep=",")
diabet$Outcome<-as.factor(diabet$Outcome)
# define training control
train_control<- trainControl(method="cv", number=10)
# fix the parameters of the algorithm
grid <- expand.grid(.fL=c(0), .usekernel=c(FALSE))
# train the model
model <- train(Outcome~BMI, data=diabet,
trControl=train_control, method="nb", tuneGrid=grid)
# summarize results
print(model)
I am getting this error:
Error: The tuning parameter grid should have columns fL, usekernel, adjust