Mercurial Hosting > traffic-intelligence
comparison python/ml.py @ 1012:01db14e947e4
resolved
author | Wendlasida |
---|---|
date | Fri, 01 Jun 2018 10:47:49 -0400 |
parents | 933670761a57 |
children | 6ba30b259525 |
comparison
equal
deleted
inserted
replaced
1011:4f0312bee393 | 1012:01db14e947e4 |
---|---|
304 and the predicted classes of the instances in the dataset''' | 304 and the predicted classes of the instances in the dataset''' |
305 if fig is None: | 305 if fig is None: |
306 fig = plt.figure() | 306 fig = plt.figure() |
307 if len(fig.get_axes()) == 0: | 307 if len(fig.get_axes()) == 0: |
308 fig.add_subplot(111) | 308 fig.add_subplot(111) |
309 for i in xrange(model.n_components): | 309 for i in range(model.n_components): |
310 mean = model.means_[i]/nUnitsPerPixel | 310 mean = model.means_[i]/nUnitsPerPixel |
311 covariance = model.covariances_[i]/nUnitsPerPixel | 311 covariance = model.covariances_[i]/nUnitsPerPixel |
312 # plot points | 312 # plot points |
313 if dataset is not None: | 313 if dataset is not None: |
314 tmpDataset = dataset/nUnitsPerPixel | 314 tmpDataset = dataset/nUnitsPerPixel |