1. Vendor and model of the processor: $ cat /proc/cpuinfo | grep vendor | uniq endor_id : GenuineIntel 2. Find the model name that can be used: $ cat /proc/cpuinfo | grep 'model name' | uniq model name : Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz 3. The lscpu command give our...
Read More →Scikit-learn is a wonderful software package for performing various computations in the field of machine learning. Let us consider the calculation of the linear regression. An equation Simple Linear Regression (SLR) have a view: SLR models also include the errors in the data or residuals (y - Y). Residuals are basically the differ...
Read More →import time start = time.time() for i in [0, 100]: i = i + 1 stop_point_somecode = time.time() for j in [1, 1000]: j = j + 1 stop_point_somecode_2 = time.time() print "Runtime somecode %s" % (stop_point_somecode - start) print "All runtime %s" % (stop_point_somecode_2 - start) To calculate, you can create a decorator: ...
Read More →