Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

after the completion of offline training, how can I measure the testing time for individual sample?

1 visualización (últimos 30 días)
I have trained my ANN for fault analysis. Now i am testing it for new data and its working accurately.
But I want to measure the detection time which ANN is taking to identify the new sample???

Respuestas (1)

Madhav Thakker
Madhav Thakker el 11 de Sept. de 2020
Hi Ali,
You can use tic toc function to calculate the time it takes for each sample during testing. Call tic before the prediction and toc just after prediction. Make sure not to do any other processes like reading or resizing in between these commands.
Hope this helps.
  3 comentarios
Madhav Thakker
Madhav Thakker el 16 de Sept. de 2020
Hi, I tried tic toc with different examples (alexnet classficiation, shallow neural network) to replicate your issue but it works as expected. The time increases as I increase the number of testing samples. Can you give more information so that I can replicate your issue?
ali mustafa
ali mustafa el 20 de Sept. de 2020
Dear Sir,
If I test the single sample, the minimum observed detection time is 40ms.
When i increase the number of sample as I tried 772 sample together, and the minimum detection was 70ms.
If its working correctly, it must be much higher than 70ms.
For example, if i calculate the time for one sample among the 772 samples detection time, the time would be very small in proportion as explained below.
1:x=772:70
but for indidual sample, the tic toc command gives more than 40ms. Thats my problem.
Because I am working on fault detection of transmission line, and the detection time is very less like less than 5 ms is found in literature. So, how could I measure that time

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by