Mercurial Hosting > traffic-intelligence
diff python/ml.py @ 998:933670761a57
updated code to python 3 (tests pass and scripts run, but non-executed parts of code are probably still not correct)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 May 2018 23:22:48 -0400 |
parents | e8eabef7857c |
children | 6ba30b259525 |
line wrap: on
line diff
--- a/python/ml.py Fri May 25 18:15:18 2018 -0400 +++ b/python/ml.py Sun May 27 23:22:48 2018 -0400 @@ -306,7 +306,7 @@ fig = plt.figure() if len(fig.get_axes()) == 0: fig.add_subplot(111) - for i in xrange(model.n_components): + for i in range(model.n_components): mean = model.means_[i]/nUnitsPerPixel covariance = model.covariances_[i]/nUnitsPerPixel # plot points