class_docstr: Manages data sample with low valuation.
class_docstr_tok: ["Manages","data","sample","with","low","valuation","."]
docstr: Calculate the data valuation score with a provided or existing knn graph.
  Based on KNN-Shapley value described in https://arxiv.org/abs/1911.07128
  The larger the score, the more valuable the data point is, the more contribution it will make to the model's training.
docstr_tok: ["Calculate","the","data","valuation","score","with","a","provided","or","existing","knn","graph",".","Based","on","KNN-Shapley","value","described","in","https",":","\/\/arxiv.org\/abs\/1911.07128","The","larger","the","score",",","the","more","valuable","the","data","point","is",",","the","more","contribution","it","will","make","to","the","model","'s","training","."]
code: def find_issues(
      self,
      **kwargs,
  ) -> None:
      """Calculate the data valuation score with a provided or existing knn graph.
      Based on KNN-Shapley value described in https://arxiv.org/abs/1911.07128
      The larger the score, the more valuable the data point is, the more contribution it will make to the model's training.
      """
      knn_graph = self._process_knn_graph_from_inputs(kwargs)
      labels = self.datalab.labels.reshape(-1, 1)
      assert (
          knn_graph is not None
      ), "knn_graph must be already calculated by other issue managers"
      assert labels is not None, "labels must be provided"
  
      scores = _knn_shapley_score(knn_graph, labels)
  
      self.issues = pd.DataFrame(
          {
              f"is_{self.issue_name}_issue": scores < self.threshold,
              self.issue_score_key: scores,
          },
      )
      self.summary = self.make_summary(score=scores.mean())
  
      self.info = self.collect_info(self.issues)
  
file_path: cleanlab/cleanlab/datalab/internal/issue_manager/data_valuation.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Union
  import numpy
  import pandas
  from scipy.sparse import csr_matrix
  from cleanlab.datalab.internal.issue_manager import IssueManager
label_desc: Use image node_id 2 for calling the DataValuationIssueManager obj's underlying member method code with example usage: obj.find_issues() without return types