public void train_on_data(training_data data, uint max_epochs, uint epochs_between_reports, float desired_error) { fanndoublePINVOKE.neural_net_train_on_data(swigCPtr, training_data.getCPtr(data), max_epochs, epochs_between_reports, desired_error); if (fanndoublePINVOKE.SWIGPendingException.Pending) throw fanndoublePINVOKE.SWIGPendingException.Retrieve(); }