Skip to content

Commit

Permalink
Removed set_callback and internal_callback for FIXEDFANN neural_nets …
Browse files Browse the repository at this point in the history
…since the callback is only used during training and fixed neural_nets don't do any training.
  • Loading branch information
joelself committed Nov 26, 2015
1 parent df4baad commit 388523e
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 @@ -867,6 +867,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 @@ -899,6 +901,8 @@ namespace FANN {
}
}

#endif /* NOT FIXEDFANN */

/* Method: print_parameters
Prints all of the parameters and options of the neural network
Expand Down Expand Up @@ -2905,6 +2909,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 @@ -2926,6 +2932,8 @@ namespace FANN {
}
}

#endif /* NOT FIXEDFANN */

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

0 comments on commit 388523e

Please sign in to comment.