A gnn_subset can be built upon an arbitrary gnn_dataset : Datasets for Training.. It provides a view of a slice of the underlying dataset. For example, a subrange of another dataset can be described with a view, or two views can be made which provide access to the even and odd patterns of a dataset.
A view consist of a starting index
, a stride
and a the number of patterns
. So, the ith-pattern of the dataset view corresponds to the underlying dataset's pattern with index
When building a gnn_dataset_view : A view for datasets. upon a given gnn_dataset : Datasets for Training., the gnn_dataset_view : A view for datasets. structure won't own the source-dataset. That means that if you destroy the gnn_dataset_view : A view for datasets. structure, the underlying gnn_dataset : Datasets for Training. won't be destroyed. It should be destroyed manually.
Typedefs | |
| typedef _gnn_dataset_view | gnn_dataset_view |
| The datatype for a dataset view. | |
Functions | |
| int | gnn_dataset_view_reset (gnn_dataset *set) |
| The "reset" function for a gnn_dataset_view. | |
| int | gnn_dataset_view_get (gnn_dataset *set, size_t k, gsl_vector **x, gsl_vector **t, double *p) |
| The "get" function for a gnn_dataset_view. | |
| void | gnn_dataset_view_destroy (gnn_dataset *set) |
| Destroy function. | |
| gnn_dataset * | gnn_dataset_view_with_stride_new (gnn_dataset *data, size_t start, size_t stride, size_t size) |
| Builds a new dataset view. | |
| gnn_dataset * | gnn_dataset_view_new (gnn_dataset *data, size_t start, size_t size) |
| Builds a new dataset view. | |
| gnn_dataset * | gnn_dataset_view_get_dataset (gnn_dataset *set) |
| Returns a pointer to the internal gnn_dataset. | |
|
|
This is the datatype for a dataset view. Definition at line 48 of file gnn_dataset_view.h. |
|
|
This is the gnn_dataset_view : A view for datasets. destroy function.
Definition at line 154 of file gnn_dataset_view.c. |
|
||||||||||||||||||||||||
|
This function is returns the k-th pattern in the dataset view.
Definition at line 126 of file gnn_dataset_view.c. |
|
|
This function returns a pointer to the internal gnn_dataset : Datasets for Training. structure, which is used as source.
Definition at line 277 of file gnn_dataset_view.c. |
|
||||||||||||||||
|
This functions creates a new view for a given dataset. The stride is assumed to be 1.
Definition at line 261 of file gnn_dataset_view.c. |
|
|
This function resets the gnn_dataset_view : A view for datasets..
Definition at line 98 of file gnn_dataset_view.c. |
|
||||||||||||||||||||
|
This functions creates a new view for a given dataset.
Definition at line 185 of file gnn_dataset_view.c. |
1.2.18