class_docstr: The contextual bandit label type for the constructor of DFtoVW.
class_docstr_tok: ["The","contextual","bandit","label","type","for","the","constructor","of","DFtoVW","."]
docstr: Initialize a ContextualbanditLabel instance.
  
  Args:
      action: The action taken where we observed the cost.
      cost: The cost observed for this action (lower is better)
      probability: The probability of the exploration policy to choose this action when collecting the data.
docstr_tok: ["Initialize","a","ContextualbanditLabel","instance",".","Args",":","action",":","The","action","taken","where","we","observed","the","cost",".","cost",":","The","cost","observed","for","this","action","(","lower","is","better",")","probability",":","The","probability","of","the","exploration","policy","to","choose","this","action","when","collecting","the","data","."]
code: def __init__(
      self, action: Hashable, cost: Hashable, probability: Hashable
  ):
      """Initialize a ContextualbanditLabel instance.
  
      Args:
          action: The action taken where we observed the cost.
          cost: The cost observed for this action (lower is better)
          probability: The probability of the exploration policy to choose this action when collecting the data.
      """
      self.action = action
      self.cost = cost
      self.probability = probability
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 1 to create a new ContextualbanditLabel object from inherited base classes: object with example: obj = ContextualbanditLabel(action, cost, probability)