powered by
Constructs a SOM, returns an object of class 'map'.
map.build(data,labels=NULL,xdim=10,ydim=5,alpha=0.3,train=1000,algorithm="vsom")
a dataframe where each row contains an unlabeled training instance.
a vector or dataframe with one label for each observation in data.
the x-dimension of the map. (default=10)
the y-dimension of the map. (default=5)
the learning rate, should be a positive non-zero real number. (default=0.3)
the number of training iterations. (default=1000)
training algorithm selection switch. (default="vsom")
object of type 'map'.
data(iris) ## set data frame and labels df <- subset(iris,select=-Species) labels <- subset(iris,select=Species) ## build a map m <- map.build(df, labels, xdim=15, ydim=10, train=1000)
Run the code above in your browser using DataLab