mirror of
https://github.com/glouw/tinn
synced 2024-11-22 06:21:44 +03:00
27 lines
420 B
C
27 lines
420 B
C
#ifndef _TINN_H_
|
|
#define _TINN_H_
|
|
|
|
/*
|
|
* TINN - The tiny dependency free ANSI-C feed forward neural network
|
|
* library with one hidden layer back propogation support.
|
|
*/
|
|
|
|
typedef struct
|
|
{
|
|
double* o;
|
|
double* h;
|
|
double* w;
|
|
int nops;
|
|
int nhid;
|
|
int nips;
|
|
}
|
|
Tinn;
|
|
|
|
double ttrain(Tinn, double* in, double* tg, double rate);
|
|
|
|
Tinn tbuild(int inputs, int output, int hidden);
|
|
|
|
void tfree(Tinn);
|
|
|
|
#endif
|