示例#1
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);
    }
示例#3
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();
     }
 }