Hi Changbin,
I looked at your code again, and it appears as if you're using the mapping
plot for something that it isn't meant for. The mapping shows you how many
points you have in every circle, and these points are represented by the
labels. Your first plot gives the majority vote.
This said,
Thanks, Joris!
It works! I appreciated!
On Wed, Jun 2, 2010 at 4:23 AM, Joris Meys jorism...@gmail.com wrote:
Hi Changbin,
I looked at your code again, and it appears as if you're using the mapping
plot for something that it isn't meant for. The mapping shows you how many
points you have
Dear Changbin,
Please provide a self-contained, minimal example, meaning the whole code
should run and create the plot as it is now, without having to load your
dataset (which we don't have). Otherwise it's impossible to see what's going
on and help you.
Cheers
Joris
On Wed, Jun 2, 2010 at 2:21
library(kohonen)
data(nir)
attach(nir)
#SOM, the supervised learning, train the map using temperature as the class
variable.
set.seed(13)
nir.xyf- xyf(data=spectra, Y=classvec2classmat(temperature), xweight = 0.9,
grid=somgrid(4, 4, hexagonal))
temp.xyf - predict(nir.xyf)$unit.prediction #get
4 matches
Mail list logo