#NEWLINE# def __init__( self , inputs , targets = None , name = 'dataset' , keep_on_cpu = False ) : #NEWLINE# #INDENT# "\n        Parameters\n        ----------\n        inputs : ndarray\n            Training examples\n        targets : ndarray (optional)\n            Target for each training example.\n        name : str (optional)\n            The name of the dataset is used to name Theano variables. Default: 'dataset'.\n        " #NEWLINE# self . name = name #NEWLINE# self . keep_on_cpu = keep_on_cpu #NEWLINE# self . inputs = inputs #NEWLINE# self . targets = targets #NEWLINE# self . symb_inputs = T . TensorVariable ( type = T . TensorType ( 'floatX' , ( [ False ] * self . inputs . ndim ) ) , name = ( self . name + '_symb_inputs' ) ) #NEWLINE# self . symb_inputs . tag . test_value = self . inputs . get_value ( ) #NEWLINE# self . symb_targets = None #NEWLINE# if self . has_targets : #NEWLINE# #INDENT# self . symb_targets = T . TensorVariable ( type = T . TensorType ( 'floatX' , ( [ False ] * self . targets . ndim ) ) , name = ( self . name + '_symb_targets' ) ) #NEWLINE# self . symb_targets . tag . test_value = self . targets . get_value ( )