Mercurial > pylearn
diff sparse_instance.py @ 401:217c8789284b
Small updates
author | Joseph Turian <turian@gmail.com> |
---|---|
date | Wed, 09 Jul 2008 00:29:16 -0400 |
parents | 269d5c5a4209 |
children |
line wrap: on
line diff
--- a/sparse_instance.py Tue Jul 08 23:59:57 2008 -0400 +++ b/sparse_instance.py Wed Jul 09 00:29:16 2008 -0400 @@ -12,8 +12,8 @@ @type instances: list of sparse instances @param dimensions: The number of dimensions in each instance. @rtype: numpy matrix (instances x dimensions) + @todo: Allow this function to convert SINGLE instances (not lists). """ - assert isinstance(instances, list) v = zeros((len(instances), dimensions)) l = len(instances) for i in range(l):