class_docstr: Base class for a Dynamic Classifier Selection (dcs) method.
  All dynamic classifier selection classes should inherit from this class.
  
  Warning: This class should not be used directly, use derived classes
  instead.
docstr: Estimate the competence of each base classifier for the
  classification of the query sample.
  
  Parameters
  ----------
  competence_region : array of shape (n_samples, n_neighbors)
      Indices of the k nearest neighbors.
  
  distances : array of shape (n_samples, n_neighbors)
      Distances from the k nearest neighbors to the query.
  
  predictions : array of shape (n_samples, n_classifiers)
      Predictions of the base classifiers for the test examples.
  
  Returns
  -------
  competences : array of shape (n_samples, n_classifiers)
      Competence level estimated for each base classifier and test
      example.
docstr_tok: ["Estimate","the","competence","of","each","base","classifier","for","the","classification","of","the","query","sample",".","Parameters","--","--","--","--","--","competence_region",":","array","of","shape","(","n_samples",",","n_neighbors",")","Indices","of","the","k","nearest","neighbors",".","distances",":","array","of","shape","(","n_samples",",","n_neighbors",")","Distances","from","the","k","nearest","neighbors","to","the","query",".","predictions",":","array","of","shape","(","n_samples",",","n_classifiers",")","Predictions","of","the","base","classifiers","for","the","test","examples",".","Returns","--","--","--","-","competences",":","array","of","shape","(","n_samples",",","n_classifiers",")","Competence","level","estimated","for","each","base","classifier","and","test","example","."]
code: def estimate_competence(
      self, competence_region, distances=None, predictions=None
  ):
      """Estimate the competence of each base classifier for the
      classification of the query sample.
  
      Parameters
      ----------
      competence_region : array of shape (n_samples, n_neighbors)
          Indices of the k nearest neighbors.
  
      distances : array of shape (n_samples, n_neighbors)
          Distances from the k nearest neighbors to the query.
  
      predictions : array of shape (n_samples, n_classifiers)
          Predictions of the base classifiers for the test examples.
  
      Returns
      -------
      competences : array of shape (n_samples, n_classifiers)
          Competence level estimated for each base classifier and test
          example.
      """
      pass
  
file_path: DESlib/deslib/dcs/base.py
imports: from abc import ABCMeta
  from copy import copy
  import numpy
  from sklearn.utils.validation import check_random_state
  from deslib.base import BaseDS
  from deslib.util.aggregation import majority_voting_rule
label_desc: Use image node_id 2 for calling the BaseDCS obj's underlying member method code with example usage: obj.estimate_competence(competence_region, distances, predictions) without return types