Computational performance metrics of a code

Asked

Viewed 50 times

1

I made a time series forecast model, but I need to evaluate the computational performance of this model. I used the time (in seconds) as code below but it is not a good measure.

Does anyone know how to make the code to get the number of CPU cycles or is aware of another metric?

start = tm.time()

    for k in range(len(X)):
        prediction = eplkrls.evolve(gamma_bar, alfa_VS, X[k], y[k])
        predictions.append(prediction)

 end = tm.time()

 duracao = end - start
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.