Пример #1
0
    public static void trainingUpdateCallback(double performance, IntPtr ptr)
    {
        // Get the script/scene object back from metadata.
        GCHandle          obj = (GCHandle)ptr;
        Sample_Continuous me  = (obj.Target as Sample_Continuous);

        // Update the performance indicator with the latest estimate.
        me.last_performance_report = performance;
    }
Пример #2
0
    public static void trainingFinishCallback(double performance, IntPtr ptr)
    {
        // Get the script/scene object back from metadata.
        GCHandle          obj = (GCHandle)ptr;
        Sample_Continuous me  = (obj.Target as Sample_Continuous);

        // Update the performance indicator with the latest estimate.
        me.last_performance_report = performance;
        // Signal that training was finished.
        me.recording_gesture = -3;
    }