mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-29 10:48:21 +01:00
35 lines
944 B
C++
35 lines
944 B
C++
#ifndef FANN_FANN_TEST_DATA_H
|
|
#define FANN_FANN_TEST_DATA_H
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include "doublefann.h"
|
|
#include "fann_cpp.h"
|
|
#include "fann_test.h"
|
|
|
|
class FannTestData : public FannTest {
|
|
protected:
|
|
unsigned int numData;
|
|
unsigned int numInput;
|
|
unsigned int numOutput;
|
|
fann_type inputValue;
|
|
fann_type outputValue;
|
|
|
|
fann_type **inputData;
|
|
fann_type **outputData;
|
|
|
|
virtual void SetUp();
|
|
|
|
virtual void TearDown();
|
|
|
|
void AssertTrainData(FANN::training_data &trainingData, unsigned int numData, unsigned int numInput,
|
|
unsigned int numOutput, fann_type inputValue, fann_type outputValue);
|
|
|
|
|
|
void InitializeTrainDataStructure(unsigned int numData, unsigned int numInput, unsigned int numOutput,
|
|
fann_type inputValue, fann_type outputValue, fann_type **inputData,
|
|
fann_type **outputData);
|
|
};
|
|
|
|
#endif
|