def splits(self):
        """List of optimal split points and bins for axis x and y.

        Returns
        -------
        splits : (numpy.ndarray, numpy.ndarray)
        """
        self._check_is_fitted()

        if self.dtype_x == "categorical":
            splits_x_optimal = bin_categorical(
                self._splits_x_optimal, self._categories_x)
        else:
            splits_x_optimal = self._splits_x_optimal

        if self.dtype_y == "categorical":
            splits_y_optimal = bin_categorical(
                self._splits_y_optimal, self._categories_y)
        else:
            splits_y_optimal = self._splits_y_optimal

        return (splits_x_optimal, splits_y_optimal)
List of optimal split points and bins for axis x and y.

        Returns
        -------
        splits : (numpy.ndarray, numpy.ndarray)
        
optbinning/binning/multidimensional/binning_2d.py