original_docstring: 
          Compute the metric using the predictions and known ground truth values.
          
          Args:
              ground_truth (list[list[int]]): list of the ground truth items ids
              predictions (list[list[int]]): list of recommended items ids
              sessions (list[Sessions]): list of sessions used for evaluation. 
               Used to compute some of the metrics, i.e. those which breaks the results
               due to the session length or used events.
  
          Returns: metric, which structure depends on the calculation
  
          
docstring: Compute the metric using the predictions and known ground truth values.
docstring_tokens: Compute the metric using the predictions and known ground truth values .
code: def compute(self, ground_truth, predictions, sessions):
          """
          Compute the metric using the predictions and known ground truth values.
          
          Args:
              ground_truth (list[list[int]]): list of the ground truth items ids
              predictions (list[list[int]]): list of recommended items ids
              sessions (list[Sessions]): list of sessions used for evaluation. 
               Used to compute some of the metrics, i.e. those which breaks the results
               due to the session length or used events.
  
          Returns: metric, which structure depends on the calculation
  
          """
          assert len(ground_truth) == len(predictions)
          if sessions is not None:
              assert len(ground_truth) == len(sessions)
code_tokens: def compute ( self , ground_truth , predictions , sessions ) : assert len ( ground_truth ) == len ( predictions ) if sessions is not None : assert len ( ground_truth ) == len ( sessions )
short_docstring: Compute the metric using the predictions and known ground truth values.
short_docstring_tokens: Compute the metric using the predictions and known ground truth values .
comment: """
          Compute the metric using the predictions and known ground truth values.
          
          Args:
              ground_truth (list[list[int]]): list of the ground truth items ids
              predictions (list[list[int]]): list of recommended items ids
              sessions (list[Sessions]): list of sessions used for evaluation. 
               Used to compute some of the metrics, i.e. those which breaks the results
               due to the session length or used events.
  
          Returns: metric, which structure depends on the calculation
  
          """