Пример #1
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();
     }
 }
Пример #2
0
 public IntFeatures(IntFeatures orig) : this(modshogunPINVOKE.new_IntFeatures__SWIG_2(IntFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public StreamingIntFeatures(IntFeatures simple_features) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_3(IntFeatures.getCPtr(simple_features)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 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();
     }
 }
Пример #5
0
    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);
    }
Пример #6
0
    public IntFeatures get_transposed()
    {
        IntPtr      cPtr = modshogunPINVOKE.IntFeatures_get_transposed(swigCPtr);
        IntFeatures ret  = (cPtr == IntPtr.Zero) ? null : new IntFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
 public IntFeatures(IntFeatures orig) : this(modshogunPINVOKE.new_IntFeatures__SWIG_2(IntFeatures.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #8
0
 internal static HandleRef getCPtr(IntFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #9
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();
 }
Пример #10
0
 public StreamingIntFeatures(IntFeatures simple_features) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_3(IntFeatures.getCPtr(simple_features)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #11
0
 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();
 }
Пример #12
0
 internal static HandleRef getCPtr(IntFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }