在R中使用kohonen软件包执行SOM时出错

时间:2019-03-22 19:12:46

标签: r som

我试图使用RStudio对900000x357的大型数据集执行SOM。它有错误,我无法在线找到任何解决方案。

  

错误:意外输入:“ keep.data = TRUE,                    n.hood =“”

require(kohonen)
data_train <- read.csv('D:/matlabSpace/data1.csv') 
data_train_matrix <- as.matrix(scale(data_train))
som_grid <- somgrid(xdim = 20, ydim=20, topo="hexagonal")


som_model <- som(data_train_matrix, 
             grid=som_grid, 
             rlen=100, 
             alpha=c(0.05,0.01), 
             keep.data = TRUE,
             n.hood=“circular” )

0 个答案:

没有答案