public bool obtain_from_simple(IntFeatures sf)
    {
        bool ret = modshogunPINVOKE.SparseIntFeatures_obtain_from_simple(swigCPtr, IntFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #2
0
 public TensorProductPairKernel(IntFeatures l, IntFeatures r, Kernel subkernel) : this(modshogunPINVOKE.new_TensorProductPairKernel__SWIG_2(IntFeatures.getCPtr(l), IntFeatures.getCPtr(r), Kernel.getCPtr(subkernel)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public IntFeatures(IntFeatures orig) : this(modshogunPINVOKE.new_IntFeatures__SWIG_2(IntFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public StreamingIntFeatures(IntFeatures simple_features) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_3(IntFeatures.getCPtr(simple_features)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public StreamingIntFeatures(IntFeatures simple_features, SWIGTYPE_p_double lab) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_2(IntFeatures.getCPtr(simple_features), SWIGTYPE_p_double.getCPtr(lab)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }