SnnsR low-level function to get most of the relevant results from a SOM.
# S4 method for SnnsR
somPredictCurrPatSetWinners(updateFuncParams=c(0.0, 0.0, 1.0),
saveWinnersPerPattern=TRUE, targets=NULL)a list with three elements:
For each unit, the amount of patterns where this unit won is given. So, this is a 1d vector representing the normal version of the som.
a vector where for each pattern the number of the winning unit is given. This is an intermediary result that normally won't be saved.
a matrix which -- if the targets parameter is given -- contains for each unit (rows) and each class
present in the targets (columns), the amount of patterns of the class where the unit has won. From the labeledUnits,
the labeledMap can be computed, e.g. by voting of the class labels for the final label of the unit.
parameters passed to the networks update function
should a list with the winners for every pattern be saved?
optional target classes of the patterns
som