original_docstring:  Stores this node in the given directory *result_dir* 
docstring: Stores this node in the given directory *result_dir
docstring_tokens: Stores this node in the given directory * result_dir
code: def store_state(self, result_dir, index=None): 
          """ Stores this node in the given directory *result_dir* """
          if self.store and self.kernel_type == 'LINEAR':
              node_dir = os.path.join(result_dir, self.__class__.__name__)
              from pySPACE.tools.filesystem import create_directory
              create_directory(node_dir)
              try:
                  self.features
              except:
                  if type(self.w) == FeatureVector:
                      self.features = self.w
                  elif self.w is not None:
                      self.features = FeatureVector(self.w.T, self.feature_names)
                  else:
                      self.features = None
              if self.features is not None:
                  # This node stores the learned features
                  name = "%s_sp%s.pickle" % ("features", self.current_split)
                  result_file = open(os.path.join(node_dir, name), "wb")
                  result_file.write(cPickle.dumps((self.features,self.b), protocol=2))
                  result_file.close()
                  name = "%s_sp%s.yaml" % ("features", self.current_split)
                  result_file = open(os.path.join(node_dir, name), "wb")
                  result_file.write(str(self.features))
                  result_file.close()
                  del self.features
code_tokens: def store_state ( self , result_dir , index = None ) : if self . store and self . kernel_type == 'LINEAR' : node_dir = os . path . join ( result_dir , self . __class__ . __name__ ) from pySPACE . tools . filesystem import create_directory create_directory ( node_dir ) try : self . features except : if type ( self . w ) == FeatureVector : self . features = self . w elif self . w is not None : self . features = FeatureVector ( self . w . T , self . feature_names ) else : self . features = None if self . features is not None : name = "%s_sp%s.pickle" % ( "features" , self . current_split ) result_file = open ( os . path . join ( node_dir , name ) , "wb" ) result_file . write ( cPickle . dumps ( ( self . features , self . b ) , protocol = 2 ) ) result_file . close ( ) name = "%s_sp%s.yaml" % ( "features" , self . current_split ) result_file = open ( os . path . join ( node_dir , name ) , "wb" ) result_file . write ( str ( self . features ) ) result_file . close ( ) del self . features
short_docstring: Stores this node in the given directory *result_dir
short_docstring_tokens: Stores this node in the given directory * result_dir
comment: """ Stores this node in the given directory *result_dir* """$SEP$# This node stores the learned features