class_docstr: ROCCurve class.
  
  >>> import numpy as np
  >>> crv = ROCCurve(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.thresholds
  [0.1, 0.2, 0.35, 0.4, 0.6, 0.65, 0.8, 0.9]
  >>> auc_trp = crv.area()
  >>> auc_trp[1]
  0.75
  >>> auc_trp[2]
  0.75
class_docstr_tok: ["ROCCurve","class",".",">",">",">","import","numpy","as","np",">",">",">","crv","=","ROCCurve","(","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.thresholds","[","0.1",",","0.2",",","0.35",",","0.4",",","0.6",",","0.65",",","0.8",",","0.9","]",">",">",">","auc_trp","=","crv.area","(",")",">",">",">","auc_trp","[","1","]","0.75",">",">",">","auc_trp","[","2","]","0.75"]
docstr: Init method.
  
  :param args: positional arguments
  :type args: list
  :param kwargs: keyword arguments
  :type kwargs: dict
docstr_tok: ["Init","method",".",":","param","args",":","positional","arguments",":","type","args",":","list",":","param","kwargs",":","keyword","arguments",":","type","kwargs",":","dict"]
code: def __init__(self, *args, **kwargs):
      """
      Init method.
  
      :param args: positional arguments
      :type args: list
      :param kwargs: keyword arguments
      :type kwargs: dict
      """
      super().__init__(*args, **kwargs)
      self.plot_x_axis = "FPR"
      self.plot_y_axis = "TPR"
      self.title = "ROC Curve"
      __curve_data_filter__(self)
      for c in self.classes:
          self.data[c][self.plot_x_axis].append(0)
          self.data[c][self.plot_y_axis].append(0)
  
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 1 to create a new ROCCurve object from inherited base classes: Curve with example: obj = ROCCurve()