Package pylearn :: Package datasets :: Module tzanetakis :: Class TzanetakisExample
[hide private]

type TzanetakisExample

source code


Return the i'th file, label pair from the Tzanetakis dataset.

Instance Methods [hide private]
 
__init__(self, alt_path_root=None) source code
 
make_node(self, idx)
Required: return an Apply instance representing the application of this Op to the provided inputs.
source code
 
perform(self, node, (idx,), (path, label))
Required: Calculate the function on the inputs and put the variables in the output storage. Return None.
source code
 
grad(self, inputs, g_output) source code

Inherited from theano.gof.utils.object2: __hash__, __ne__

Inherited from theano.gof.op.PureOp: __call__

Inherited from theano.gof.op.CLinkerOp: c_code, c_code_cleanup, c_support_code_apply

Inherited from theano.gof.op.CLinkerObject: c_code_cache_version, c_code_cache_version_apply, c_compile_args, c_header_dirs, c_headers, c_lib_dirs, c_libraries, c_no_compile_args, c_support_code

Static Methods [hide private]
 
read_tracklist(alt_path_root=None)
Read the tzanetakis dataset file :rtype: (list, list) :returns: paths, labels
source code
Class Variables [hide private]
  class_idx_dict = {'blues': array(0), 'classical': 1, 'country'...

Inherited from theano.gof.op.PureOp: default_output

Properties [hide private]
  n_examples
  nclasses
Method Details [hide private]

__init__(self, alt_path_root=None)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

make_node(self, idx)

source code 

Required: return an Apply instance representing the application of this Op to the provided inputs.

All subclasses should over-ride this function.

Raises:
  • MethodNotDefined - : the subclass does not override this method
Overrides: theano.gof.op.PureOp.make_node
(inherited documentation)

perform(self, node, (idx,), (path, label))

source code 

Required: Calculate the function on the inputs and put the variables in the output storage. Return None.

The output\_storage list might contain data. If an element of output_storage is not None, it is guaranteed that it was produced by a previous call to impl and impl is free to reuse it as it sees fit.

Parameters:
  • node - contains the symbolic inputs and outputs
  • inputs - sequence of inputs (immutable)
  • output_storage - list of mutable 1-element lists (do not change the length of these lists)
Raises:
  • MethodNotDefined - : the subclass does not override this method
Overrides: theano.gof.op.PureOp.perform
(inherited documentation)

Class Variable Details [hide private]

class_idx_dict

Value:
{'blues': array(0),
 'classical': 1,
 'country': 2,
 'disco': 3,
 'hiphop': 4,
 'jazz': 5,
 'metal': 6,
 'pop': 7,
...

Property Details [hide private]

n_examples

nclasses