Mercurial > pylearn
comparison dataset.py @ 317:14081904d8f3
doc updated regarding __getitem__ returning LookupList and .subset returning a DataSet
author | Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca> |
---|---|
date | Wed, 11 Jun 2008 16:40:47 -0400 |
parents | 5fe6d0c93109 |
children | e2eab74b6a28 |
comparison
equal
deleted
inserted
replaced
316:5fe6d0c93109 | 317:14081904d8f3 |
---|---|
97 | 97 |
98 Dataset elements can be indexed and sub-datasets (with a subset | 98 Dataset elements can be indexed and sub-datasets (with a subset |
99 of examples) can be extracted. These operations are not supported | 99 of examples) can be extracted. These operations are not supported |
100 by default in the case of streams. | 100 by default in the case of streams. |
101 | 101 |
102 - dataset[:n] returns a dataset with the n first examples. | 102 - dataset[:n] returns an Example with the n first examples. |
103 | 103 |
104 - dataset[i1:i2:s] returns a dataset with the examples i1,i1+s,...i2-s. | 104 - dataset[i1:i2:s] returns an Example with the examples i1,i1+s,...i2-s. |
105 | 105 |
106 - dataset[i] returns an Example. | 106 - dataset[i] returns an Example. |
107 | 107 |
108 - dataset[[i1,i2,...in]] returns a dataset with examples i1,i2,...in. | 108 - dataset[[i1,i2,...in]] returns a. Example with examples i1,i2,...in. |
109 | |
110 A similar command gives you a DataSet instead of Examples : | |
111 | |
112 - dataset.subset[:n] returns a DataSet with the n first examples. | |
113 | |
114 - dataset.subset[i1:i2:s] returns a DataSet with the examples i1,i1+s,...i2-s. | |
115 | |
116 - dataset.subset[i] returns a DataSet. | |
117 | |
118 - dataset.subset[[i1,i2,...in]] returns a DataSet with examples i1,i2,...in. | |
119 | |
109 | 120 |
110 - dataset.<property> returns the value of a property associated with | 121 - dataset.<property> returns the value of a property associated with |
111 the name <property>. The following properties should be supported: | 122 the name <property>. The following properties should be supported: |
112 - 'description': a textual description or name for the dataset | 123 - 'description': a textual description or name for the dataset |
113 - 'fieldtypes': a list of types (one per field) | 124 - 'fieldtypes': a list of types (one per field) |