changeset 25:d61638e45c34

Fix deprecated "eval" call, for compatibility with scikit-learn 0.16+
author Dan Stowell <danstowell@users.sourceforge.net>
date Wed, 28 Oct 2015 11:56:03 +0000
parents 34b4b44299be
children 2c18741d61fb
files smacpy.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/smacpy.py	Thu Oct 24 08:37:00 2013 +0100
+++ b/smacpy.py	Wed Oct 28 11:56:03 2015 +0000
@@ -91,7 +91,7 @@
 		bestlabel = ''
 		bestll = -9e99
 		for label, gmm in self.gmms.items():
-			ll = gmm.eval(features)[0]
+			ll = gmm.score_samples(features)[0]
 			ll = np.sum(ll)
 			if ll > bestll:
 				bestll = ll