mirror of
https://github.com/glouw/tinn
synced 2025-01-05 02:04:25 +03:00
Update README.md
This commit is contained in:
parent
ea130335da
commit
dbd3d71de5
@ -10,13 +10,13 @@ Tinn can be compiled with any C++ compiler as well.
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
double in[] = { 0.05, 0.10 };
|
float in[] = { 0.05, 0.10 };
|
||||||
double tg[] = { 0.01, 0.99 };
|
float tg[] = { 0.01, 0.99 };
|
||||||
/* Two hidden neurons */
|
/* Two hidden neurons */
|
||||||
const Tinn tinn = xtbuild(len(in), 2, len(tg));
|
const Tinn tinn = xtbuild(len(in), 2, len(tg));
|
||||||
for(int i = 0; i < 1000; i++)
|
for(int i = 0; i < 1000; i++)
|
||||||
{
|
{
|
||||||
double error = xttrain(tinn, in, tg, 0.5);
|
float error = xttrain(tinn, in, tg, 0.5);
|
||||||
printf("%.12f\n", error);
|
printf("%.12f\n", error);
|
||||||
}
|
}
|
||||||
xtfree(tinn);
|
xtfree(tinn);
|
||||||
|
Loading…
Reference in New Issue
Block a user