som - Automatically select SOM_GRID in R -
i trying run som algorithm in r using kohenen package. in have define xdim, ydim dimension manually. refer below code:
som_grid <- somgrid(xdim=5, ydim=6, topo="hexagonal") som_model <- som(data_train_matrix, grid=som_grid, keep.data = true) my questions:
- is there method automatically selects dimensions based on data
- can explain logic behind selection can write function in r identify dimensions automatically
i'm not in r think can you:
#consider dummy xdim , ydim data. x<-c(seq(0,5,by=0.5)) y<-c(seq(0,6,by=0.5)) ## determine sector starting , end points. a<-rbind(1,2,3,4,5) b<-rbind(1,2,3,4,5,6) sectors<-cbind(a,b) sectors ## see table of sector.
Comments
Post a Comment