Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
    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);
    }
Beispiel #3
0
    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);
    }
Beispiel #4
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);
    }
Beispiel #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);
    }