On every call on gnn_dataset_reset, the gnn_random_order : A random order sampler. sampler generates a new permutation (a new sampling order) for the underlying gnn_dataset : Datasets for Training.. That is, the gnn_random_order : A random order sampler.'s ith-pattern
, corresponds to the pattern
of the underlying gnn_dataset : Datasets for Training. structure, where
is the random permutation.
When building a gnn_random_order : A random order sampler. upon a given gnn_dataset : Datasets for Training., the gnn_random_order : A random order sampler. structure will own the source-dataset. That means that if you destroy the gnn_random_order : A random order sampler. structure, the underlying gnn_dataset : Datasets for Training. will be destroyed too.
Typedefs | |
| typedef _gnn_random_order | gnn_random_order |
| The datatype for a random order sampler. | |
Functions | |
| int | gnn_random_order_reset (gnn_dataset *set) |
| The "reset" function for a gnn_random_order. | |
| int | gnn_random_order_get (gnn_dataset *set, size_t k, gsl_vector **x, gsl_vector **t, double *p) |
| The "get" function for a simple set. | |
| void | gnn_random_order_destroy (gnn_dataset *set) |
| Destroy function. | |
| gnn_dataset * | gnn_random_order_new (gnn_dataset *data) |
| Builds a new random order sampler. | |
| gnn_dataset * | gnn_random_order_from_inputs_new (gnn_input *inputs, gnn_input *outputs, gnn_input *weights) |
| Builds a new random sampler from gnn_inputs. | |
| gnn_dataset * | gnn_random_order_from_file_new (const char *inputsFile, const char *outputsFile, const char *weightsFile) |
| Builds a new random order sampler from text files. | |
| gnn_dataset * | gnn_random_order_get_dataset (gnn_dataset *set) |
| Returns a pointer to the internal gnn_dataset. | |
|
|
This is the datatype for a dataset random order sampler. It extends the basic gnn_dataset : Datasets for Training. structure to include three additional pointers to the input pattern, output pattern and pattern weights samplers. Definition at line 52 of file gnn_random_order.h. |
|
|
This is the gnn_random_order : A random order sampler. destroy function.
Definition at line 148 of file gnn_random_order.c. |
|
||||||||||||||||
|
This functions creates a new random order sampler 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 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.
Definition at line 299 of file gnn_random_order.c. |
|
||||||||||||||||
|
This functions creates a new random order sampler 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
Definition at line 263 of file gnn_random_order.c. |
|
||||||||||||||||||||||||
|
This function is returns the k-th pattern in the random order sampler, where the k-th pattern is drawn in a random order from the internal gnn_dataset : Datasets for Training..
Definition at line 124 of file gnn_random_order.c. |
|
|
This function returns a pointer to the internal gnn_dataset : Datasets for Training. structure, which is used as source.
Definition at line 320 of file gnn_random_order.c. |
|
|
This functions creates a new random order sampler from a given dataset. It will create a new random sampling permutation (i.e. it will shuffle) on each call on gnn_dataset_reset, so that a sequential pattern retrieval from pattern
Definition at line 184 of file gnn_random_order.c. |
|
|
This function resets the gnn_random_order : A random order sampler..
Definition at line 92 of file gnn_random_order.c. |
1.2.18