write.snns {write.snns} | R Documentation |
Interfacing SNNS pattern files.
Description
Creates a pattern file from a matrix or data frame, suitable for training, validating or testing
a neural network with the Stuttgart Neural Network Simulator (SNNS).
Usage
write.snns(x, file="", noutputs=1)
Arguments
x |
Matrix or data.frame containing data to export. |
file |
Name of the pattern file to create. If not specified standard output is used as default. |
noutputs |
Number of output units of the neural network the pattern will work with. |
Details
This function generates a pattern file from a data.frame or matrix. It doesn't cover subpatterns, variable number of dimensions or classes yet. It goes through the data entity writing its contents into the specified file. Each row is interpreted as a data vector. The first components are the input variables. The output units are specified in the noutputs last components.
Neural networks have demonstrated its ability in process modelling, data clustering and classification. It can be useful to compare the results obtained with regression models with those obtained by other AI techniques such as Neural Networks or Evolutionary Computation. The purpose of this routine is to make the data transfer from R to SNNS as immediate as possible.
Value
The function returns no value.
Author(s)
Manuel Castejon Limas. manuel.castejon@unileon.es
Joaquin Ordieres Mere. joaquin.ordieres@dim.unirioja.es
Francisco Javier de Cos Juez. decos@api.uniovi.es
Francisco Javier Martinez de Pison. fjmartin@dim.unirioja.es
References
SNNS - Stuttgart Neural Network Simulator V4.1 Manual http://www-ra.informatik.uni-tuebingen.de/SNNS/
Examples
x <- data.frame(x=c(1.4, 3.6, 4.7, 5.3), y=c(1.7, 3.5, 2.5, 9.4))
x
write.snns(x)