コード例 #1
0
ファイル: OnlineSVMSGD.cs プロジェクト: Anshul-Bansal/gsoc
 public void set_loss_function(SWIGTYPE_p_CLossFunction loss_func)
 {
     modshogunPINVOKE.OnlineSVMSGD_set_loss_function(swigCPtr, SWIGTYPE_p_CLossFunction.getCPtr(loss_func));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: OnlineSVMSGD.cs プロジェクト: Anshul-Bansal/gsoc
    public SWIGTYPE_p_CLossFunction get_loss_function()
    {
        IntPtr cPtr = modshogunPINVOKE.OnlineSVMSGD_get_loss_function(swigCPtr);
        SWIGTYPE_p_CLossFunction ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_CLossFunction(cPtr, false);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #3
0
ファイル: SGDQN.cs プロジェクト: Anshul-Bansal/gsoc
 public void set_loss_function(SWIGTYPE_p_CLossFunction loss_func) {
   modshogunPINVOKE.SGDQN_set_loss_function(swigCPtr, SWIGTYPE_p_CLossFunction.getCPtr(loss_func));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #4
0
 internal static HandleRef getCPtr(SWIGTYPE_p_CLossFunction obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #5
0
 internal static HandleRef getCPtr(SWIGTYPE_p_CLossFunction obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }