shangguan91:

but the result do not equal 0 why?


time.time() will return your current system time in each call. Since the model.train() operation will take a bit of time to execute, your total time will not be 0.