box/box_list.py
def to_yaml(
            self,
            filename: Union[str, PathLike] = None,
            default_flow_style: bool = False,
            encoding: str = "utf-8",
            errors: str = "strict",
            **yaml_kwargs,
        ):
            """
            Transform the BoxList object into a YAML string.

            :param filename:  If provided will save to file
            :param default_flow_style: False will recursively dump dicts
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :param yaml_kwargs: additional arguments to pass to yaml.dump
            :return: string of YAML or return of `yaml.dump`
            """
            return _to_yaml(
                self.to_list(),
                filename=filename,
                default_flow_style=default_flow_style,
                encoding=encoding,
                errors=errors,
                **yaml_kwargs,
            )

            Transform the BoxList object into a YAML string.

            :param filename:  If provided will save to file
            :param default_flow_style: False will recursively dump dicts
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :param yaml_kwargs: additional arguments to pass to yaml.dump
            :return: string of YAML or return of `yaml.dump`
            
Transform the BoxList object into a YAML string.
Transform the BoxList object into a YAML string .
def to_yaml(
            self,
            filename: Union[str, PathLike] = None,
            default_flow_style: bool = False,
            encoding: str = "utf-8",
            errors: str = "strict",
            **yaml_kwargs,
        ):
            return _to_yaml(
                self.to_list(),
                filename=filename,
                default_flow_style=default_flow_style,
                encoding=encoding,
                errors=errors,
                **yaml_kwargs,
            )
def to_yaml ( self , filename : Union [ str , PathLike ] = None , default_flow_style : bool = False , encoding : str = "utf-8" , errors : str = "strict" , ** yaml_kwargs , ) : return _to_yaml ( self . to_list ( ) , filename = filename , default_flow_style = default_flow_style , encoding = encoding , errors = errors , ** yaml_kwargs , )
Transform the BoxList object into a YAML string.
Transform the BoxList object into a YAML string .
"""
            Transform the BoxList object into a YAML string.

            :param filename:  If provided will save to file
            :param default_flow_style: False will recursively dump dicts
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :param yaml_kwargs: additional arguments to pass to yaml.dump
            :return: string of YAML or return of `yaml.dump`
            """
string of YAML or return of `yaml.dump`
string of YAML or return of ` yaml . dump `
self
filename
Union[str, PathLike]
If provided will save to file
If provided will save to file
default_flow_style
bool
False will recursively dump dicts
False will recursively dump dicts
encoding
str
None
errors
str
None
yaml_kwargs
additional arguments to pass to yaml.dump
additional arguments to pass to yaml . dump