#include <otNeuralNetwork.h>
Public Member Functions | |
otTinn () | |
bool | init (int nips, int nops, int nhid, otFILE *fs) |
void | close () |
float * | predict (const float *in) |
float | train (const float *in, const float *tg, float rate) |
bool | save (const char *path) |
bool | load (const char *path) |
void | print (const float *arr, const int size) |
void | properties (int &nips, int &nops, int &nhid) |
|
Create the class |
|
Free all allocated resources |
|
Init neural network
|
|
Loads a otTinn from disk.
|
|
Returns an output prediction given an input.
|
|
Prints an array of floats. Useful for printing predictions.
|
|
Read properties of the neural network.
|
|
Saves a otTinn to disk.
|
|
Trains a otTinn with an input and target output with a learning rate.
|