WriteWTS: save .wts files

Description Usage Arguments Details Author(s) See Also

Description

save weight vectors of an ESOM to a file with .wts extension

Usage

1
2
WriteWTS(FileName,wts, OutDirectory=getwd(),Lines = NULL,
                 Columns = NULL, IsToroid = 0, Comment)

Arguments

FileName

string, name of file the data will be saved in

wts

[1:Lines*Columns,1:weights] Information stored as a List of weights in a 2D matrix, Note: Make this a 3 dimensional array through ListAsEsomNeurons ListAsEsomNeurons

Information represents a 2D grid with a weight for every neuron of the length of the data set (number of variables)

OutDirectory

string, name of directory the data will be saved in, default getwd()

Lines

Number, Defines Grid Size (y-axis) of the corresponding U-matrix NOTE: One of Lines starts at the top, y-axis starts at bottom

Columns

Number, Defines Grid Size (x-axis) of the corresponding U-matrix

IsToroid

used topology, either 0=planar or 1=toroid

Comment

array of characters to be written in the first line of the file, it will be marked with '\#', more than one line, use '\n#' Not More than 3 seperate Lines of Comments allowed

Details

FileName may have a .wts extension, if not, it will be added automatically The array will be broken down into a rectangular form like a matrix. The lines will be organized as follows
som[1,1,1], ... , som[1,1,m]
som[1,2,1], ... , som[1,2,m]
. .
. .
. .
som[1,l,1], ... , som[1,l,m]
som[2,1,1], ... , som[2,1,m]
. .
. .
. .
som[k,l,1], ... , som[k,l,m]

Author(s)

Michael Thrun, Florian Lerch

See Also

ReadWTS, addext


aultsch/DataIO documentation built on May 14, 2019, 10:34 p.m.