diff python/tests/storage.txt @ 872:c70adaeeddf5

solved issue with latest version of scikit-learn
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 08 Feb 2017 16:32:15 -0500
parents 6db83beb5350
children 000555430b28
line wrap: on
line diff
--- a/python/tests/storage.txt	Fri Feb 03 16:26:18 2017 -0500
+++ b/python/tests/storage.txt	Wed Feb 08 16:32:15 2017 -0500
@@ -92,11 +92,11 @@
 >>> points = random_sample(nPoints*2).reshape(nPoints,2)
 >>> gmm = GaussianMixture(4, covariance_type = 'full')
 >>> tmp = gmm.fit(points)
->>> id = 0
->>> savePOIs('pois-tmp.sqlite', gmm, 'end', id)
+>>> gmmId = 0
+>>> savePOIs('pois-tmp.sqlite', gmm, 'end', gmmId)
 >>> reloadedGmm = loadPOIs('pois-tmp.sqlite')
->>> sum(gmm.predict(points) == reloadedGmm[id].predict(points)) == nPoints
+>>> sum(gmm.predict(points) == reloadedGmm[gmmId].predict(points)) == nPoints
 True
->>> reloadedGmm[id].gmmTypes[0] == 'end'
+>>> reloadedGmm[gmmId].gmmTypes[0] == 'end'
 True
 >>> remove('pois-tmp.sqlite')