Skip to content

Commit

Permalink
Merge pull request libfann#59 from joelself/Clean
Browse files Browse the repository at this point in the history
Removed set_callback and internal_callback for FIXEDFANN neural_nets
  • Loading branch information
steffennissen committed Nov 29, 2015
2 parents 889de34 + 388523e commit f0e05ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/include/fann_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ namespace FANN {
}
}

#ifndef FIXEDFANN

/* Method: set_callback
Sets the callback function for use during training. The user_data is passed to
Expand Down Expand Up @@ -900,6 +902,8 @@ namespace FANN {
}
}

#endif /* NOT FIXEDFANN */

/* Method: print_parameters
Prints all of the parameters and options of the neural network
Expand Down Expand Up @@ -2906,6 +2910,8 @@ namespace FANN {
neural_net *net; // This pointer for the neural network
} user_context;

#ifndef FIXEDFANN

// Internal callback used to convert from pointers to class references
static int FANN_API internal_callback(struct fann *ann, struct fann_train_data *train,
unsigned int max_epochs, unsigned int epochs_between_reports,
Expand All @@ -2927,6 +2933,8 @@ namespace FANN {
}
}

#endif /* NOT FIXEDFANN */

protected:
// Pointer the encapsulated fann neural net structure
struct fann *ann;
Expand Down

0 comments on commit f0e05ea

Please sign in to comment.