From 8f4336422c9c9b180d4ea390310e223346c0bf72 Mon Sep 17 00:00:00 2001 From: pprett Date: Thu, 19 Aug 2010 09:23:13 +0200 Subject: [PATCH] changed unique1d to unique due to numpy refactoring in numpy 1.5. --- bolt/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/io.py b/bolt/io.py index 53fe44a..d33da1b 100644 --- a/bolt/io.py +++ b/bolt/io.py @@ -98,7 +98,7 @@ def __init__(self, dim, instances, labels, qids = None): """The array holding the labels. """ self._idx = np.arange(self.n) """The indexing array. """ - self.classes = np.unique1d(labels) + self.classes = np.unique(labels) """The classes. """ self.qids = qids