original_docstring:  Mark the support vectors by a circle.
          
docstring: Mark the support vectors by a circle.
docstring_tokens: Mark the support vectors by a circle .
code: def plot_support_vectors(self):
          """ Mark the support vectors by a circle.
          """
          support_vectors = []
          for idx in numpy.arange(self.num_samples):
              if self.dual_solution[idx] != 0:
                  support_vectors.append(self.samples[idx])
  
          support_vectors = numpy.matrix(support_vectors)
  
          if self.scat is not None:
              self.scat.remove()
  
          if support_vectors is not None and\
              numpy.shape(support_vectors)[0] > 1 and\
              numpy.shape(support_vectors)[1] > 0:
              self.circle_out(support_vectors[:, 0], support_vectors[:, 1], s=100)
          else:
              self.scat = None
code_tokens: def plot_support_vectors ( self ) : support_vectors = [ ] for idx in numpy . arange ( self . num_samples ) : if self . dual_solution [ idx ] != 0 : support_vectors . append ( self . samples [ idx ] ) support_vectors = numpy . matrix ( support_vectors ) if self . scat is not None : self . scat . remove ( ) if support_vectors is not None and numpy . shape ( support_vectors ) [ 0 ] > 1 and numpy . shape ( support_vectors ) [ 1 ] > 0 : self . circle_out ( support_vectors [ : , 0 ] , support_vectors [ : , 1 ] , s = 100 ) else : self . scat = None
short_docstring: Mark the support vectors by a circle.
short_docstring_tokens: Mark the support vectors by a circle .
comment: """ Mark the support vectors by a circle.
          """