aboutsummaryrefslogtreecommitdiff
path: root/src/neural.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/neural.h')
-rw-r--r--src/neural.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/neural.h b/src/neural.h
new file mode 100644
index 0000000..4456907
--- /dev/null
+++ b/src/neural.h
@@ -0,0 +1,12 @@
+#ifndef __NEURAL__
+#define __NEURAL__
+
+#include <stdlib.h>
+#include <stdint.h>
+
+typedef struct Layer {
+ double *weights;
+ double (*activation)(double x);
+ size_t neurons;
+} Layer;
+#endif
Feel free to download, copy and edit any repo