Package dimer :: Package nnet :: Module config_spec :: Class DataSpec
[hide private]
[frames] | no frames]

Class DataSpec

source code

object --+        
         |        
     tuple --+    
             |    
   ??.DataSpec --+
                 |
                DataSpec

Instance Methods [hide private]

Inherited from unreachable.DataSpec: __getnewargs__, __repr__

Inherited from unreachable.DataSpec (private): _asdict, _replace

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__, __sizeof__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]
 
batches_from_data(self, tot_size, batch_s, valid_s, valid_idx, rng) source code
 
_from_archive(cls, path, batch_s, rng, valid_s, valid_idx)
initialize from archive
source code

Inherited from unreachable.DataSpec (private): _make

Static Methods [hide private]

Inherited from unreachable.DataSpec: __new__

Class Variables [hide private]

Inherited from unreachable.DataSpec (private): _fields

Properties [hide private]

Inherited from unreachable.DataSpec: batch_size, dataname, label_names, labels, track_names, tracks, train_batches, train_s, valid_batches, valid_s, width

Inherited from object: __class__

Method Details [hide private]

_from_archive(cls, path, batch_s, rng, valid_s, valid_idx)
Class Method

source code 

initialize from archive

path: dataset specification path batch_s: batch size train_s: train size (default = 50%) valid_s: vlaidation size (default 25% )