class_docstr: Curve class.
  
  >>> import numpy as np
  >>> crv = Curve(actual_vector=np.array([1, 1, 2, 2]), probs=np.array([[0.1, 0.9], [0.4, 0.6], [0.35, 0.65], [0.8, 0.2]]), classes=[2, 1])
  >>> crv.classes
  [2, 1]
  >>> crv.thresholds
  [0.1, 0.2, 0.35, 0.4, 0.6, 0.65, 0.8, 0.9]
  >>> crv.data[2]["TPR"]
  [1.0, 1.0, 1.0, 0.5, 0.5, 0.5, 0.5, 0.0]
  >>> crv.data[2]["FPR"]
  [1.0, 0.5, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0]
  >>> auc_trp = crv.area()
  >>> auc_trp[1]
  0.75
  >>> auc_trp[2]
  0.75
  >>> auc_mid = crv.area(method="midpoint")
  >>> auc_mid[1]
  0.75
  >>> auc_mid[2]
  0.75
class_docstr_tok: ["Curve","class",".",">",">",">","import","numpy","as","np",">",">",">","crv","=","Curve","(","actual_vector=np.array","(","[","1",",","1",",","2",",","2","]",")",",","probs=np.array","(","[","[","0.1",",","0.9","]",",","[","0.4",",","0.6","]",",","[","0.35",",","0.65","]",",","[","0.8",",","0.2","]","]",")",",","classes=","[","2",",","1","]",")",">",">",">","crv.classes","[","2",",","1","]",">",">",">","crv.thresholds","[","0.1",",","0.2",",","0.35",",","0.4",",","0.6",",","0.65",",","0.8",",","0.9","]",">",">",">","crv.data","[","2","]","[","``","TPR","''","]","[","1.0",",","1.0",",","1.0",",","0.5",",","0.5",",","0.5",",","0.5",",","0.0","]",">",">",">","crv.data","[","2","]","[","``","FPR","''","]","[","1.0",",","0.5",",","0.5",",","0.5",",","0.0",",","0.0",",","0.0",",","0.0","]",">",">",">","auc_trp","=","crv.area","(",")",">",">",">","auc_trp","[","1","]","0.75",">",">",">","auc_trp","[","2","]","0.75",">",">",">","auc_mid","=","crv.area","(","method=","''","midpoint","''",")",">",">",">","auc_mid","[","1","]","0.75",">",">",">","auc_mid","[","2","]","0.75"]
docstr: Representation method.
  
  :return: representation as str
docstr_tok: ["Representation","method",".",":","return",":","representation","as","str"]
code: def __repr__(self):
      """
      Representation method.
  
      :return: representation as str
      """
      return "pycm.Curve(classes: " + str(self.classes) + ")"
  
imports: from __future__ import division
  from .pycm_error import pycmCurveError, pycmPlotError
  from .pycm_util import threshold_func, thresholds_calc, isfloat
  from .pycm_param import *
  from .pycm_obj import ConfusionMatrix
  from warnings import warn
  import numpy
label_desc: Use image node_id 4 for calling the Curve obj's underlying member method code with example usage: obj.__repr__() and returns: unknown