Usage
xyf(data, Y, grid=somgrid(), rlen = 100, alpha = c(0.05, 0.01), radius = quantile(nhbrdist, 0.67) * c(1, -1), xweight = 0.5, contin, toroidal = FALSE, n.hood, keep.data = TRUE)
Arguments
data
a matrix, with each row representing an object.
Y
property that is to be modelled. In case of classification, Y
is a matrix of zeros, with exactly one '1' in each row indicating
the class. For prediction of continuous properties, Y is a vector. A
combination is possible, too, but one then should take care of
appropriate scaling.
grid
a grid for the representatives: see somgrid
.
rlen
the number of times the complete data set will be
presented to the network.
alpha
learning rate, a vector of two numbers indicating the
amount of change. Default is to decline linearly from 0.05 to 0.01
over rlen
updates.
radius
the radius of the neighbourhood, either given as a
single number or a vector (start, stop). If it is given as a single
number the radius will run from the given number to the negative
value of that number; as soon as the neighbourhood gets smaller than
one only the winning unit will be updated. The default is to start with a
value that covers 2/3 of all unit-to-unit distances.
xweight
the weight given to the X map in the
calculation of distances for updating Y. Default is 0.5.
contin
parameter indicating whether Y is continuous or
categorical. The default is to check whether all row sums of Y equal
1: in that case contin
is FALSE
.
toroidal
if TRUE, the edges of the map are joined. Note
that in a hexagonal toroidal map, the number of rows must be even.
n.hood
the shape of the neighbourhood, either "circular" or
"square". The latter is the default for rectangular maps, the former
for hexagonal maps.
keep.data
save data in return value.