Exemplo n.º 1
0
    public double TrainClassImageSet(int nrOfEpochs, double learnRate, double momentum, ClassImageSet_YUV16 cis, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_TrainClassImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, ClassImageSet_YUV16.getCPtr(cis), ref meanError);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 2
0
 public BPN_ImageOptimizer_YUV16(int populationSize, int nrEpochs, double lowConfidence, ClassImageSet_YUV16 trainCIS, ClassImageSet_YUV16 evalCIS, int hidden1Low, int hidden1High, int hidden2Low, int hidden2High, double learnRateLow, double learnRateHigh, double momentumLow, double momentumHigh) : this(VisionLabPINVOKE.new_BPN_ImageOptimizer_YUV16(populationSize, nrEpochs, lowConfidence, ClassImageSet_YUV16.getCPtr(trainCIS), ClassImageSet_YUV16.getCPtr(evalCIS), hidden1Low, hidden1High, hidden2Low, hidden2High, learnRateLow, learnRateHigh, momentumLow, momentumHigh), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
    public double EvaluateClassImageSet(ClassImageSet_YUV16 cis, vector_int classesRes, vector_double confidencies, vector_vector_double outputs, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_EvaluateClassImageSet(swigCPtr, ClassImageSet_YUV16.getCPtr(cis), vector_int.getCPtr(classesRes), vector_double.getCPtr(confidencies), vector_vector_double.getCPtr(outputs), ref meanError);

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