woodpecker/sklearn/decisiontree/decision_tree_structure_regressor.py
def show_leaf_regression_criteria_distribution(self, bins=10, figsize=(10, 5)):
        """ Visualize distribution of leaves criterias.

        It is useful when you want the see the overall leaf performances from the tree.

        :param bins: int, optional
            Number of bins from histogram (default 10)
        :param figsize: tuple, optional
            The plot size.
        """

        self._calculate_leaf_nodes()

        plt.figure(figsize=figsize)
        plt.hist([self.impurity[i] for i in range(0, self.node_count) if self.is_leaf[i]], bins=bins)
        plt.xlabel(f"leaf {self.tree.criterion.upper()}", fontsize=20)
        plt.ylabel("leaf count", fontsize=20)
 Visualize distribution of leaves criterias.

        It is useful when you want the see the overall leaf performances from the tree.

        :param bins: int, optional
            Number of bins from histogram (default 10)
        :param figsize: tuple, optional
            The plot size.
        
Visualize distribution of leaves criterias.
It is useful when you want the see the overall leaf performances from the tree.
Visualize distribution of leaves criterias . It is useful when you want the see the overall leaf performances from the tree .
def show_leaf_regression_criteria_distribution(self, bins=10, figsize=(10, 5)):
        self._calculate_leaf_nodes()
        plt.figure(figsize=figsize)
        plt.hist([self.impurity[i] for i in range(0, self.node_count) if self.is_leaf[i]], bins=bins)
        plt.xlabel(f"leaf {self.tree.criterion.upper()}", fontsize=20)
        plt.ylabel("leaf count", fontsize=20)
def show_leaf_regression_criteria_distribution ( self , bins = 10 , figsize = ( 10 , 5 ) ) : self . _calculate_leaf_nodes ( ) plt . figure ( figsize = figsize ) plt . hist ( [ self . impurity [ i ] for i in range ( 0 , self . node_count ) if self . is_leaf [ i ] ] , bins = bins ) plt . xlabel ( f"leaf {self.tree.criterion.upper()}" , fontsize = 20 ) plt . ylabel ( "leaf count" , fontsize = 20 )
Visualize distribution of leaves criterias.
Visualize distribution of leaves criterias .
""" Visualize distribution of leaves criterias.

        It is useful when you want the see the overall leaf performances from the tree.

        :param bins: int, optional
            Number of bins from histogram (default 10)
        :param figsize: tuple, optional
            The plot size.
        """
self
bins
int, optional
Number of bins from histogram (default 10)
int optional Number of bins from histogram ( default 10 )
figsize
tuple, optional
The plot size.
tuple optional The plot size .