コード例 #1
0
ファイル: StreamingFile.cs プロジェクト: Anshul-Bansal/gsoc
 public virtual void get_vector_and_label(SWIGTYPE_p_VwExample ex, SWIGTYPE_p_int len, SWIGTYPE_p_double label)
 {
     modshogunPINVOKE.StreamingFile_get_vector_and_label__SWIG_13(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex), SWIGTYPE_p_int.getCPtr(len), SWIGTYPE_p_double.getCPtr(label));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: VowpalWabbit.cs プロジェクト: Anshul-Bansal/gsoc
    public float compute_exact_norm(SWIGTYPE_p_VwExample ex, SWIGTYPE_p_float sum_abs_x)
    {
        float ret = modshogunPINVOKE.VowpalWabbit_compute_exact_norm(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex), SWIGTYPE_p_float.getCPtr(sum_abs_x));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #3
0
    public virtual float dense_dot_truncated(SWIGTYPE_p_float vec2, SWIGTYPE_p_VwExample ex, float gravity)
    {
        float ret = modshogunPINVOKE.StreamingVwFeatures_dense_dot_truncated(swigCPtr, SWIGTYPE_p_float.getCPtr(vec2), SWIGTYPE_p_VwExample.getCPtr(ex), gravity);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #4
0
ファイル: VowpalWabbit.cs プロジェクト: Anshul-Bansal/gsoc
    public virtual float predict_and_finalize(SWIGTYPE_p_VwExample ex)
    {
        float ret = modshogunPINVOKE.VowpalWabbit_predict_and_finalize(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
    public int read_dense_features(SWIGTYPE_p_CIOBuffer buf, SWIGTYPE_p_VwExample ae)
    {
        int ret = modshogunPINVOKE.VwParser_read_dense_features(swigCPtr, SWIGTYPE_p_CIOBuffer.getCPtr(buf), SWIGTYPE_p_VwExample.getCPtr(ae));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
    public virtual SWIGTYPE_p_VwExample get_example()
    {
        IntPtr cPtr = modshogunPINVOKE.StreamingVwFeatures_get_example(swigCPtr);
        SWIGTYPE_p_VwExample ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_VwExample(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #7
0
 internal static HandleRef getCPtr(SWIGTYPE_p_VwExample obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #8
0
ファイル: VwParser.cs プロジェクト: Anshul-Bansal/gsoc
 public int read_dense_features(SWIGTYPE_p_CIOBuffer buf, SWIGTYPE_p_VwExample ae) {
   int ret = modshogunPINVOKE.VwParser_read_dense_features(swigCPtr, SWIGTYPE_p_CIOBuffer.getCPtr(buf), SWIGTYPE_p_VwExample.getCPtr(ae));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #9
0
ファイル: StreamingFile.cs プロジェクト: Anshul-Bansal/gsoc
 public virtual void get_vector_and_label(SWIGTYPE_p_VwExample ex, SWIGTYPE_p_int len, SWIGTYPE_p_double label) {
   modshogunPINVOKE.StreamingFile_get_vector_and_label__SWIG_13(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex), SWIGTYPE_p_int.getCPtr(len), SWIGTYPE_p_double.getCPtr(label));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
 public virtual float dense_dot_truncated(SWIGTYPE_p_float vec2, SWIGTYPE_p_VwExample ex, float gravity) {
   float ret = modshogunPINVOKE.StreamingVwFeatures_dense_dot_truncated(swigCPtr, SWIGTYPE_p_float.getCPtr(vec2), SWIGTYPE_p_VwExample.getCPtr(ex), gravity);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #11
0
 internal static HandleRef getCPtr(SWIGTYPE_p_VwExample obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #12
0
ファイル: VowpalWabbit.cs プロジェクト: Anshul-Bansal/gsoc
 public float compute_exact_norm(SWIGTYPE_p_VwExample ex, SWIGTYPE_p_float sum_abs_x) {
   float ret = modshogunPINVOKE.VowpalWabbit_compute_exact_norm(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex), SWIGTYPE_p_float.getCPtr(sum_abs_x));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #13
0
ファイル: VowpalWabbit.cs プロジェクト: Anshul-Bansal/gsoc
 public virtual float predict_and_finalize(SWIGTYPE_p_VwExample ex) {
   float ret = modshogunPINVOKE.VowpalWabbit_predict_and_finalize(swigCPtr, SWIGTYPE_p_VwExample.getCPtr(ex));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }