class_docstr: Compare class.
  
  >>> cm1 = ConfusionMatrix(matrix={0:{0:2,1:50,2:6}, 1:{0:5,1:50,2:3}, 2:{0:1,1:7,2:50}})
  >>> cm2 = ConfusionMatrix(matrix={0:{0:50,1:2,2:6}, 1:{0:50,1:5,2:3}, 2:{0:1,1:55,2:2}})
  >>> cp = Compare({"cm1": cm1, "cm2": cm2})
  >>> print(cp)
  Best : cm1
  <BLANKLINE>
  Rank  Name   Class-Score       Overall-Score
  1     cm1    0.50278           0.58095
  2     cm2    0.33611           0.52857
  <BLANKLINE>
  >>> cp.best
  pycm.ConfusionMatrix(classes: [0, 1, 2])
  >>> cp.sorted
  ['cm1', 'cm2']
  >>> cp.best_name
  'cm1'
class_docstr_tok: ["Compare","class",".",">",">",">","cm1","=","ConfusionMatrix","(","matrix=","{","0",":","{","0:2,1:50,2:6","}",",","1",":","{","0:5,1:50,2:3","}",",","2",":","{","0:1,1:7,2:50","}","}",")",">",">",">","cm2","=","ConfusionMatrix","(","matrix=","{","0",":","{","0:50,1:2,2:6","}",",","1",":","{","0:50,1:5,2:3","}",",","2",":","{","0:1,1:55,2:2","}","}",")",">",">",">","cp","=","Compare","(","{","``","cm1","''",":","cm1",",","``","cm2","''",":","cm2","}",")",">",">",">","print","(","cp",")","Best",":","cm1","<","BLANKLINE",">","Rank","Name","Class-Score","Overall-Score","1","cm1","0.50278","0.58095","2","cm2","0.33611","0.52857","<","BLANKLINE",">",">",">",">","cp.best","pycm.ConfusionMatrix","(","classes",":","[","0",",","1",",","2","]",")",">",">",">","cp.sorted","[","'cm1","'",",","'cm2","'","]",">",">",">","cp.best_name","'cm1","'"]
docstr: Compare object representation method.
  
  :return: representation as str
docstr_tok: ["Compare","object","representation","method",".",":","return",":","representation","as","str"]
code: def __repr__(self):
      """
      Compare object representation method.
  
      :return: representation as str
      """
      return "pycm.Compare(classes: " + str(self.classes) + ")"
  
imports: from __future__ import division
  from .pycm_error import pycmCompareError
  from .pycm_output import *
  from .pycm_util import *
  from .pycm_param import *
  from .pycm_obj import ConfusionMatrix
  import os
  import numpy
  from warnings import warn
label_desc: Use image node_id 4 for calling the Compare obj's underlying member method code with example usage: obj.__repr__() and returns: unknown