/// <summary> /// Create a new trainer and use it to run a test cycle using the current 'stage' = RNN or RL. /// </summary> /// <param name="mycaffe">Specifies the MyCaffeControl to use.</param> /// <param name="nIterationOverride">Specifies the iterations to run if greater than zero.</param> /// <param name="type">Specifies the type of iterator to use.</param> public void Test(Component mycaffe, int nIterationOverride, ITERATOR_TYPE type = ITERATOR_TYPE.ITERATION) { if (m_itrainer == null) { m_itrainer = createTrainer(mycaffe, getStage()); } if (nIterationOverride == -1) { nIterationOverride = m_nIterations; } m_itrainer.Test(nIterationOverride, type); cleanup(500, false); }
/// <summary> /// Create a new trainer and use it to run a test cycle using the current 'stage' = RNN or RL. /// </summary> /// <param name="mycaffe">Specifies the MyCaffeControl to use.</param> /// <param name="nIterationOverride">Specifies the iterations to run if greater than zero.</param> public void Test(Component mycaffe, int nIterationOverride) { if (m_itrainer == null) { m_itrainer = createTrainer(mycaffe, getStage()); } if (nIterationOverride == -1) { nIterationOverride = m_nIterations; } m_itrainer.Test(nIterationOverride); m_itrainer.Shutdown(500); m_itrainer = null; }