(self, str_or_buffer=None)
return yamlio.convert_to_yaml(self.to_dict(), str_or_buffer)
Save a model respresentation to YAML.

        Parameters
        ----------
        str_or_buffer : str or file like, optional
            By default a YAML string is returned. If a string is
            given here the YAML will be written to that file.
            If an object with a ``.write`` method is given the
            YAML will be written to that object.

        Returns
        -------
        j : str
            YAML string if `str_or_buffer` is not given.
Save a model respresentation to YAML.
Save a model respresentation to YAML .
def to_yaml(self, str_or_buffer=None):
        """
        Save a model respresentation to YAML.

        Parameters
        ----------
        str_or_buffer : str or file like, optional
            By default a YAML string is returned. If a string is
            given here the YAML will be written to that file.
            If an object with a ``.write`` method is given the
            YAML will be written to that object.

        Returns
        -------
        j : str
            YAML string if `str_or_buffer` is not given.

        """
        logger.debug(
            'serializing segmented regression model {} to yaml'.format(
                self.name))
        return yamlio.convert_to_yaml(self.to_dict(), str_or_buffer)
def to_yaml ( self , str_or_buffer = None ) : logger . debug ( 'serializing segmented regression model {} to yaml' . format ( self . name ) ) return yamlio . convert_to_yaml ( self . to_dict ( ) , str_or_buffer )