Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libfann/fann
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LCAD-UFES/fann
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 20, 2016

  1. Update fann_error.c

    albertodesouza committed Jan 20, 2016
    Copy the full SHA
    cdb5eea View commit details

Commits on Feb 20, 2016

  1. fixed to run with gcc/g++ 4.6

    root authored and root committed Feb 20, 2016
    Copy the full SHA
    2426235 View commit details
Showing with 12 additions and 7 deletions.
  1. +2 −0 src/fann_error.c
  2. +10 −7 tests/fann_test_train.h
2 changes: 2 additions & 0 deletions src/fann_error.c
Original file line number Diff line number Diff line change
@@ -214,6 +214,8 @@ void fann_error(struct fann_error *errdat, const enum fann_errno_enum errno_f, .
{
fprintf(error_log, "FANN Error %d: %s", errno_f, errstr);
}

exit(1);
}

/* INTERNAL FUNCTION
17 changes: 10 additions & 7 deletions tests/fann_test_train.h
Original file line number Diff line number Diff line change
@@ -5,20 +5,23 @@

class FannTestTrain : public FannTest {
protected:
fann_type xorInput[8] = {
static fann_type xorInput[8];
static fann_type xorOutput[4];

virtual void SetUp();

virtual void TearDown();
};

fann_type FannTestTrain::xorInput[8] = {
0.0, 0.0,
0.0, 1.0,
1.0, 0.0,
1.0, 1.0};
fann_type xorOutput[4] = {
fann_type FannTestTrain::xorOutput[4] = {
0.0,
1.0,
1.0,
0.0};

virtual void SetUp();

virtual void TearDown();
};

#endif