1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-30 19:18:21 +01:00
antd-lua-plugin/lib/ann/fann/tests/fann_test.h

30 lines
737 B
C
Raw Normal View History

2018-09-19 15:08:49 +02:00
#ifndef FANN_FANN_TEST_H
#define FANN_FANN_TEST_H
#include "gtest/gtest.h"
#include "doublefann.h"
#include "fann_cpp.h"
using namespace FANN;
class FannTest : public testing::Test {
protected:
neural_net net;
training_data data;
void AssertCreateAndCopy(neural_net &net, unsigned int numLayers, const unsigned int *layers, unsigned int neurons,
unsigned int connections);
void AssertCreate(neural_net &net, unsigned int numLayers, const unsigned int *layers,
unsigned int neurons, unsigned int connections);
void AssertWeights(neural_net &net, fann_type min, fann_type max, fann_type avg);
virtual void SetUp();
virtual void TearDown();
};
#endif