docs: fix simple typo, biaes -> bias

There is a small typo in Tinn.c.

Should read `bias` rather than `biaes`.
This commit is contained in:
Tim Gates 2020-11-27 20:40:32 +11:00
parent e366d4d1fc
commit c030cb2eea
No known key found for this signature in database
GPG Key ID: AE3BE0D53823CF05

2
Tinn.c
View File

@ -150,7 +150,7 @@ Tinn xtload(const char* const path)
fscanf(file, "%d %d %d\n", &nips, &nhid, &nops); fscanf(file, "%d %d %d\n", &nips, &nhid, &nops);
// Build a new tinn. // Build a new tinn.
const Tinn t = xtbuild(nips, nhid, nops); const Tinn t = xtbuild(nips, nhid, nops);
// Load biaes and weights. // Load bias and weights.
for(int i = 0; i < t.nb; i++) fscanf(file, "%f\n", &t.b[i]); for(int i = 0; i < t.nb; i++) fscanf(file, "%f\n", &t.b[i]);
for(int i = 0; i < t.nw; i++) fscanf(file, "%f\n", &t.w[i]); for(int i = 0; i < t.nw; i++) fscanf(file, "%f\n", &t.w[i]);
fclose(file); fclose(file);