watex.utils.funcutils.parse_yaml#

watex.utils.funcutils.parse_yaml(yml_fn=None, data=None, todo='load', savepath=None, verbose=0, **ymlkws)[source]#

Parse yml file and collect data from YAML config file.

Parameters
  • yml_fn – yaml filename and can be the output YAML name if data is given and todo is set to dump.Otherwise the YAML output filename should be the data or the given variable name.

  • data – Data in Python obj to serialize.

  • todo – Action to perform with YAML: - load: Load data from the YAML file - dump: serialize data from the Python object and create a YAML file

  • savepath – If default should save the yml_fn to the default path otherwise should store to the convenient path. If path does not exist, should set to the default path.

  • verbose – int, control the verbosity. Output messages