Mercurial > hg > nsaunier > traffic-intelligence
diff python/ml.py @ 1012:01db14e947e4
resolved
| author | Wendlasida |
|---|---|
| date | Fri, 01 Jun 2018 10:47:49 -0400 |
| parents | 933670761a57 |
| children | 6ba30b259525 |
line wrap: on
line diff
--- a/python/ml.py Fri Jun 01 10:43:23 2018 -0400 +++ b/python/ml.py Fri Jun 01 10:47:49 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
