public double TrainImageSet(int nrOfEpochs, double learnRate, double momentum, vector_FloatImage images, vector_int classes, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Float_TrainImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, vector_FloatImage.getCPtr(images), vector_int.getCPtr(classes), ref meanError);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }