Mercurial > pylearn
comparison dataset.py @ 455:fb62f0e4bcfe
Reverted change ce6b4fd3ab29 (I do not believe anymore it was a typo)
author | delallea@valhalla.apstat.com |
---|---|
date | Thu, 02 Oct 2008 13:46:13 -0400 |
parents | 6e7509acb1c0 |
children |
comparison
equal
deleted
inserted
replaced
454:6e7509acb1c0 | 455:fb62f0e4bcfe |
---|---|
1198 class ArrayDataSet(ArrayFieldsDataSet): | 1198 class ArrayDataSet(ArrayFieldsDataSet): |
1199 """ | 1199 """ |
1200 An ArrayDataSet stores the fields as groups of columns in a numpy tensor, | 1200 An ArrayDataSet stores the fields as groups of columns in a numpy tensor, |
1201 whose first axis iterates over examples, second axis determines fields. | 1201 whose first axis iterates over examples, second axis determines fields. |
1202 If the underlying array is N-dimensional (has N axes), then the field | 1202 If the underlying array is N-dimensional (has N axes), then the field |
1203 values are (N-1)-dimensional objects (i.e. ordinary numbers if N=2). | 1203 values are (N-2)-dimensional objects (i.e. ordinary numbers if N=2). |
1204 """ | 1204 """ |
1205 | 1205 |
1206 def __init__(self, data_array, fields_columns, **kwargs): | 1206 def __init__(self, data_array, fields_columns, **kwargs): |
1207 """ | 1207 """ |
1208 Construct an ArrayDataSet from the underlying numpy array (data) and | 1208 Construct an ArrayDataSet from the underlying numpy array (data) and |