Go to the documentation of this file.
14 void load(
const char *);
19 void save(
const char *);
22 double train(std::vector<double> &input, std::vector<double> &target);
23 double *
test(
const std::vector<double> &input);
24 double GetInput(std::vector<double> &input,
const std::vector<double> &target);
25 double train(std::vector<unsigned int> &input, std::vector<double> &target);
26 double *
test(
const std::vector<unsigned int> &input);
36 std::vector< std::vector< std::vector<double> > >
weights;
38 std::vector< std::vector< std::vector<double> > >
errors;
45 double outputerr(
const std::vector<double> &
output,
const std::vector<double> &expected,
int which);
46 double internalerr(
const std::vector<double> &
output,
const std::vector<double> &expected,
int which);
47 double internalinputerr(
const std::vector<double> &
output,
const std::vector<double> &expected,
int which);
std::vector< std::vector< std::vector< double > > > errors
double * test(const std::vector< double > &input)
double internalinputerr(const std::vector< double > &output, const std::vector< double > &expected, int which)
double error(const std::vector< double > &outputs)
static bool validSaveFile(char *fname)
void load(const FunctionApproximator *fa)
double GetInput(std::vector< double > &input, const std::vector< double > &target)
double train(std::vector< double > &input, std::vector< double > &target)
double getInputWeight(int inp, int outp=0)
double outputerr(const std::vector< double > &output, const std::vector< double > &expected, int which)
std::vector< double > output
std::vector< std::vector< std::vector< double > > > updatedweights
void allocateMemory(const NN *nn=0)
double internalerr(const std::vector< double > &output, const std::vector< double > &expected, int which)
std::vector< double > hidden
NN(int inputs, int hiddens, int outputs, double learnrate)
std::vector< std::vector< std::vector< double > > > weights