Mercurial > pylearn
comparison dataset.py @ 39:c682c6e9bf93
Minor edits
author | bengioy@esprit.iro.umontreal.ca |
---|---|
date | Thu, 24 Apr 2008 14:46:10 -0400 |
parents | d637ad8f7352 |
children | 88fd1cce08b9 |
comparison
equal
deleted
inserted
replaced
38:d637ad8f7352 | 39:c682c6e9bf93 |
---|---|
321 dataset[i] returns the (i+1)-th example of the dataset. | 321 dataset[i] returns the (i+1)-th example of the dataset. |
322 dataset[i:j] returns the subdataset with examples i,i+1,...,j-1. | 322 dataset[i:j] returns the subdataset with examples i,i+1,...,j-1. |
323 dataset[i:j:s] returns the subdataset with examples i,i+2,i+4...,j-2. | 323 dataset[i:j:s] returns the subdataset with examples i,i+2,i+4...,j-2. |
324 dataset[[i1,i2,..,in]] returns the subdataset with examples i1,i2,...,in. | 324 dataset[[i1,i2,..,in]] returns the subdataset with examples i1,i2,...,in. |
325 | 325 |
326 Note that some stream datasets may be unable to implement slicing/indexing | 326 Note that some stream datasets may be unable to implement random access, i.e. |
327 arbitrary slicing/indexing | |
327 because they can only iterate through examples one or a minibatch at a time | 328 because they can only iterate through examples one or a minibatch at a time |
328 and do not actually store or keep past (or future) examples. | 329 and do not actually store or keep past (or future) examples. |
329 """ | 330 """ |
330 raise NotImplementedError() | 331 raise NotImplementedError() |
331 | 332 |