|
NeuroTIC 0.0
|
Training Utilities.
https://tituxdev.github.io/NeuroTIC/src/CPU/nttrain.c.
More...
#include "ntcore.h"

Go to the source code of this file.
Data Structures | |
| struct | traindata_t |
| Structure to hold training dataset and parameters. More... | |
Typedefs | |
| typedef data_t | precision_t |
| typedef uint64_t | sample_t |
| typedef uint64_t | attempts_t |
| typedef struct traindata_t | traindata_t |
| Structure to hold training dataset and parameters. | |
Functions | |
| void | newtraindata (traindata_t *train_data, net_s *net) |
| Allocates memory for training data arrays. | |
| attempts_t | backpropagation (net_s *net, traindata_t *data) |
| Trains a network using backpropagation. | |
Training Utilities.
https://tituxdev.github.io/NeuroTIC/src/CPU/nttrain.c.
Provides functions to allocate training datasets and train feedforward networks using standard backpropagation.
Definition in file nttrain.h.
| typedef uint64_t attempts_t |
| typedef data_t precision_t |
| typedef uint64_t sample_t |
| typedef struct traindata_t traindata_t |
Structure to hold training dataset and parameters.
| attempts_t backpropagation | ( | net_s * | net, |
| traindata_t * | train_data | ||
| ) |
Trains a network using backpropagation.
| net | Pointer to the network to train. |
| train_data | Pointer to the training data. |
Implements the backpropagation algorithm to train the network. For each training sample:
tolerance or max_attempts is reached. References feedforward(), net_s::layers, traindata_t::max_attempts, net_s::neurons, traindata_t::samples, and traindata_t::tolerance.
| void newtraindata | ( | traindata_t * | train_data, |
| net_s * | net | ||
| ) |
Allocates memory for training data arrays.
| traindata_t | Pointer to training data structure to initialize. |
| net_s | Pointer to the network being trained. |
Allocates memory for training data arrays.
Initializes in and results arrays based on the network structure and number of samples.
References net_s::layers, and traindata_t::samples.