ae2f_docs
MlpTrainXOR.cc File Reference
#include <ae2f/Ann/Mlp.h>
#include <cstdlib>
#include <cstdio>
#include <math.h>

Go to the source code of this file.

Functions

int main ()

Variables

const ae2f_float_t inp [4][2]
const ae2f_float_t goal_xor [4] = {0, 1, 1, 0}
ae2f_float_t output [2] = {0}
ae2f_err_t err [1] = {0}
ae2f_AnnMlp * mlp
size_t lenv [] = {2, 5, 5, 1}

Function Documentation

◆ main()

int main ( )

Definition at line 35 of file MlpTrainXOR.cc.

Variable Documentation

◆ err

ae2f_err_t err[1] = {0}

Definition at line 31 of file MlpTrainXOR.cc.

◆ goal_xor

const ae2f_float_t goal_xor[4] = {0, 1, 1, 0}

Definition at line 28 of file MlpTrainXOR.cc.

◆ inp

const ae2f_float_t inp[4][2]
Initial value:
= {
{0, 0},
{0, 1},
{1, 0},
{1, 1}
}

Definition at line 21 of file MlpTrainXOR.cc.

◆ lenv

size_t lenv[] = {2, 5, 5, 1}

Definition at line 33 of file MlpTrainXOR.cc.

◆ mlp

ae2f_AnnMlp* mlp

Definition at line 32 of file MlpTrainXOR.cc.

◆ output

ae2f_float_t output[2] = {0}

Definition at line 30 of file MlpTrainXOR.cc.