Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_simple_set.h File Reference

#include "gnn_dataset.h"
#include "gnn_input.h"

Include dependency graph for gnn_simple_set.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  _gnn_simple_set

Typedefs

typedef _gnn_simple_set gnn_simple_set
 The datatype for simple sets.


Functions

gnn_datasetgnn_simple_set_new (gnn_input *inputs, gnn_input *outputs, gnn_input *weights)
 Builds a new simple set.

gnn_datasetgnn_simple_set_from_files_new (const char *inputsFile, const char *outputsFile, const char *weightsFile)
 Builds a new simple set from text files.

gnn_inputgnn_simple_set_get_inputs (gnn_dataset *set)
 Returns a pointer to the inputs.

gnn_inputgnn_simple_set_get_outputs (gnn_dataset *set)
 Returns a pointer to the target vector input device.

gnn_inputgnn_simple_set_get_weights (gnn_dataset *set)
 Returns a pointer to the inputs.


Function Documentation

gnn_dataset* gnn_simple_set_from_files_new const char *    inputsFile,
const char *    outputsFile,
const char *    weightsFile
 

This functions creates a new simple set from two or three text files containing the patterns.

The text files should be ASCII-formatted, and should contain matrices where the number of columns corresponds to the size of the vectors, and the row number to the number of patterns. Obviously, it is illegal to provide matrices of different row sizes. Also, the weights file should have only one column.

If the weights file is omitted (i.e. it is a pointer to NULL), the the weights are assumed to be 1.

It is basically a shorthand for building the dataset from gnn_input : Reading and handling of sets of vectors. structures which themselves should be built from text files.

Parameters:
inputs  The name of the file containing the input examples.
outputs  The name of the file containing the output examples (targets).
weights  The name of the file containing the vector with the weights for each pattern, or NULL if they should all be 1.
Returns:
Returns a pointer to a new gnn_simple_set : A simple implementation of datasets. dataset.

Definition at line 304 of file gnn_simple_set.c.

gnn_input* gnn_simple_set_get_inputs gnn_dataset   set
 

This function returns a pointer to the inputs, which are of the gnn_input : Reading and handling of sets of vectors. type.

Parameters:
set  A pointer to a gnn_simple_set : A simple implementation of datasets. dataset.
Returns:
Returns a pointer to the internal input device.

Definition at line 341 of file gnn_simple_set.c.

gnn_input* gnn_simple_set_get_outputs gnn_dataset   set
 

This function returns a pointer to the outputs, which are of the gnn_input : Reading and handling of sets of vectors. type.

Parameters:
set  A pointer to a gnn_simple_set : A simple implementation of datasets. dataset.
Returns:
Returns a pointer to the internal target vector input device.

Definition at line 361 of file gnn_simple_set.c.

gnn_input* gnn_simple_set_get_weights gnn_dataset   set
 

This function returns a pointer to the weights input device, which are of the gnn_input : Reading and handling of sets of vectors. type or NULL if not available.

Parameters:
set  A pointer to a gnn_simple_set : A simple implementation of datasets. dataset.
Returns:
Returns a pointer to the internal weight input device or NULL.

Definition at line 382 of file gnn_simple_set.c.

gnn_dataset* gnn_simple_set_new gnn_input   inputs,
gnn_input   outputs,
gnn_input   weights
 

This functions creates a new simple set from two or three input samplers. The first two correspond to the input pattern and output pattern samplers, wich should contain the same amount of patterns. The third is the pattern weight sampler, which, if given, should also be of the same size. If omitted (that means it is a NULL pointer), then all weights are assumed to be 1.

Parameters:
inputs  The input sampler, a gnn_input : Reading and handling of sets of vectors. object.
outputs  The target sampler, a gnn_input : Reading and handling of sets of vectors. object.
weights  The weight sampler, a gnn_input : Reading and handling of sets of vectors. object.
Returns:
Returns a pointer to a new gnn_simple_set : A simple implementation of datasets. dataset.

Definition at line 215 of file gnn_simple_set.c.


Generated on Sun Jun 13 20:51:20 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18