r - Rcpp::not_compatible when fitting RBF -


i attempting fit rbf network using rsnns package, code:

library(rcpp) library(rsnns) library(mlbench) data("breastcancer") breastwithoutna<- na.omit(breastcancer) inputs <- breastwithoutna[, 2:10] outputs <- decodeclasslabels(breastwithoutna[,11],valtrue = 0.9,valfalse = 0.1)   model <- rbf(inputs, outputs, size=40, maxit=1000,              initfuncparams=c(0, 1, 0, 0.01, 0.01),              learnfuncparams=c(1e-8, 0, 1e-8, 0.1, 0.8), linout=true) 

when run line:

model <- rbf(inputs, outputs, size=40, maxit=1000,           initfuncparams=c(0, 1, 0, 0.01, 0.01),           learnfuncparams=c(1e-8, 0, 1e-8, 0.1, 0.8), linout=true) 

i following error:

terminate called after throwing instance of 'rcpp::not_compatible' what():  not compatible requested type  application has requested runtime terminate in unusual way. please contact application's support team more information. 

could me,please? regards,

the problem input mlp needs numeric matrix. can check is.numeric(as.matrix(inputs)) inputs not numbers, in fact strings. need convert input.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -