Example #1
0
 public OnlineLibLinear(double C, StreamingDotFeatures traindat) : this(modshogunPINVOKE.new_OnlineLibLinear__SWIG_2(C, StreamingDotFeatures.getCPtr(traindat)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public virtual void set_features(StreamingDotFeatures feat)
 {
     modshogunPINVOKE.OnlineLinearMachine_set_features(swigCPtr, StreamingDotFeatures.getCPtr(feat));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public override float dot(StreamingDotFeatures df)
    {
        float ret = modshogunPINVOKE.StreamingIntFeatures_dot__SWIG_1(swigCPtr, StreamingDotFeatures.getCPtr(df));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
0
    public virtual StreamingDotFeatures get_features()
    {
        IntPtr cPtr = modshogunPINVOKE.OnlineLinearMachine_get_features(swigCPtr);
        StreamingDotFeatures ret = (cPtr == IntPtr.Zero) ? null : new StreamingDotFeatures(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public override float dot(StreamingDotFeatures df) {
   float ret = modshogunPINVOKE.StreamingByteFeatures_dot__SWIG_1(swigCPtr, StreamingDotFeatures.getCPtr(df));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public virtual void set_features(StreamingDotFeatures feat) {
   modshogunPINVOKE.OnlineLinearMachine_set_features(swigCPtr, StreamingDotFeatures.getCPtr(feat));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Example #7
0
 public OnlineLibLinear(double C, StreamingDotFeatures traindat) : this(modshogunPINVOKE.new_OnlineLibLinear__SWIG_2(C, StreamingDotFeatures.getCPtr(traindat)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(StreamingDotFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 internal static HandleRef getCPtr(StreamingDotFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }