class_docstr: Class to be used to supply the data stats info when discretize_continuous is true
class_docstr_tok: ["Class","to","be","used","to","supply","the","data","stats","info","when","discretize_continuous","is","true"]
code: def bins(self, data, labels):
      bins_from_stats = self.data_stats.get("bins")
      bins = []
      if bins_from_stats is not None:
          for feature in self.to_discretize:
              bins_from_stats_feature = bins_from_stats.get(feature)
              if bins_from_stats_feature is not None:
                  qts = np.array(bins_from_stats_feature)
                  bins.append(qts)
      return bins
  
imports: import numpy
  import sklearn
  import sklearn.tree
  import scipy
  from sklearn.utils import check_random_state
  from abc import ABCMeta, abstractmethod
label_desc: Use image node_id 2 for calling the StatsDiscretizer obj's underlying member method code with example usage: obj.bins(data, labels) and returns: bins