Package dimer :: Module data :: Class TrainAnchorDataset
[hide private]
[frames] | no frames]

Class TrainAnchorDataset

source code

      object --+        
               |        
         Dataset --+    
                   |    
      object --+   |    
               |   |    
AnchorAnnotation --+    
                   |    
      object --+   |    
               |   |    
     TheanoShare --+    
                   |    
       AnchorDataset --+
                       |
          object --+   |
                   |   |
        TrainDataset --+
                       |
                      TrainAnchorDataset

Instance Methods [hide private]
 
__init__(self, X, Y, T, batch_s, tot_s=None, valid_s=None, valid_idx=None, rng=None)
X, Y, T are a Panel, Series, and DataFrame resp.
source code

Inherited from AnchorDataset: dump

Inherited from TheanoShare: share

Inherited from TrainDataset: iter_train, iter_valid

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_from_archive(cls, path, raw, batch_s, **kwargs) source code

Inherited from AnchorDataset: mean_sdX

Static Methods [hide private]

Inherited from Dataset: fit_features, normalize_features

Properties [hide private]

Inherited from AnchorDataset: labels, track_names, tracks, width

Inherited from Dataset: is_labeled

Inherited from TheanoShare: shT, shX, shY

Inherited from object: __class__

Method Details [hide private]

__init__(self, X, Y, T, batch_s, tot_s=None, valid_s=None, valid_idx=None, rng=None)
(Constructor)

source code 

X, Y, T are a Panel, Series, and DataFrame resp.

Parameters:
  • tot_s - nr. of examples
  • batch_s - batch size
  • valid_s - fraction of data to allocate for validation
  • valid_idx - batch index at which allocate validation data
  • rng - numpy.RandomState used to shuffle batches or None (no shuffle) @return : (train_batches, valid_batches)
Overrides: object.__init__
(inherited documentation)

_from_archive(cls, path, raw, batch_s, **kwargs)
Class Method

source code 
Overrides: AnchorDataset._from_archive