original_docstring:  Debug function for printing the classifier and the slack variables
          
docstring: Debug function for printing the classifier and the slack variables
docstring_tokens: Debug function for printing the classifier and the slack variables
code: def print_variables(self):
          """ Debug function for printing the classifier and the slack variables
          """
          # Precision does not work here because of the strange dtype. 
          numpy.set_printoptions(edgeitems=50, precision=4, suppress=False,
                                 threshold=50)
          # ...Setting the dtype to list doesn't work either.
          print self.print_w
          print 'This is the classification vector w and b=', self.b, '.'
          print self.num_retained_features, ' out of ', self.dim, \
              ' features have been used.'
          
          print self.num_sv, " vectors of ", self.num_samples, " have been used."
          # print self.t, "are the Slack variables."
          
          if not((numpy.array(self.t) >= 0).all()):
              print "There are negative slack variables! Classification failed?"
          print "%i vectors of %i have been used for the inner margin and" \
                                      % (self.inner_margin, self.num_samples)
          numpy.set_printoptions(edgeitems=100, linewidth=75, precision=5,
                                 suppress=True, threshold=1000)
          print numpy.array(self.ti), "are the inner Slack variables."
          numpy.set_printoptions(edgeitems=3, infstr='Inf', linewidth=75,
                                 nanstr='NaN', precision=8, suppress=False,
                                 threshold=1000)
code_tokens: def print_variables ( self ) : numpy . set_printoptions ( edgeitems = 50 , precision = 4 , suppress = False , threshold = 50 ) print self . print_w print 'This is the classification vector w and b=' , self . b , '.' print self . num_retained_features , ' out of ' , self . dim , ' features have been used.' print self . num_sv , " vectors of " , self . num_samples , " have been used." if not ( ( numpy . array ( self . t ) >= 0 ) . all ( ) ) : print "There are negative slack variables! Classification failed?" print "%i vectors of %i have been used for the inner margin and" % ( self . inner_margin , self . num_samples ) numpy . set_printoptions ( edgeitems = 100 , linewidth = 75 , precision = 5 , suppress = True , threshold = 1000 ) print numpy . array ( self . ti ) , "are the inner Slack variables." numpy . set_printoptions ( edgeitems = 3 , infstr = 'Inf' , linewidth = 75 , nanstr = 'NaN' , precision = 8 , suppress = False , threshold = 1000 )
short_docstring: Debug function for printing the classifier and the slack variables
short_docstring_tokens: Debug function for printing the classifier and the slack variables
comment: """ Debug function for printing the classifier and the slack variables
          """$SEP$# Precision does not work here because of the strange dtype. $SEP$# ...Setting the dtype to list doesn't work either.$SEP$# print self.t, "are the Slack variables."