Beispiel #1
0
 public void train(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t required_output, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t input)
 {
     rysyPINVOKE.CNN_train__SWIG_7(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(required_output), SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(input));
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
 public void train(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t required_output, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t input, uint epoch_count, bool verbose)
 {
     rysyPINVOKE.CNN_train__SWIG_5(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(required_output), SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(input), epoch_count, verbose);
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public void forward(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t output, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t input)
 {
     rysyPINVOKE.CNN_forward__SWIG_2(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(output), SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(input));
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void save(string file_name, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t v)
 {
     rysyPINVOKE.ImageSave_save__SWIG_1(swigCPtr, file_name, SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t.getCPtr(v));
     if (rysyPINVOKE.SWIGPendingException.Pending)
     {
         throw rysyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
    public SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t heatmap_compute(SWIGTYPE_p_std__vectorT_float_t state)
    {
        SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t(rysyPINVOKE.DQN_heatmap_compute(swigCPtr, SWIGTYPE_p_std__vectorT_float_t.getCPtr(state)), true);

        if (rysyPINVOKE.SWIGPendingException.Pending)
        {
            throw rysyPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #7
0
    public virtual SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t get_testing_output_all()
    {
        SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t(rysyPINVOKE.DatasetInterface_get_testing_output_all(swigCPtr), false);

        return(ret);
    }
Beispiel #8
0
    public SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t get_q_values()
    {
        SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_float_t_t(rysyPINVOKE.ExperienceReplayBuffer_get_q_values(swigCPtr), false);

        return(ret);
    }