I have written my code in python (using numpy). It is a simple code for classification problems, but I would really like to compare how for instance Neural Nets performs in comparison to decision trees. I would like to measure the time taken to run my function and the memory cost, I have tried to find a numpy function for this, and have tried timeit, but it seems not to be exactly what im looking for.
I would like to simply have a function that I can say time(NeuralNets()) and then it tells me how long running that function with its given input takes.
any help would be very welcome!