watex.utils.funcutils.serialize_data#

watex.utils.funcutils.serialize_data(data, filename=None, force=True, savepath=None, verbose=0)[source]#

Store a data into a binary file

Parameters
  • data – Object Object to store into a binary file.

  • filename – str Name of file to serialize. If ‘None’, should create automatically.

  • savepath – str, PathLike object Directory to save file. If not exists should automaticallycreate.

  • force – bool If True, remove the old file if it exists, otherwise will create a new incremenmted file.

  • verbose – int, get more message.

Returns

dumped or serialized filename.

Example
>>> import numpy as np
>>> import watex.utils.coreutils import serialize_data
>>> data = np.arange(15)
>>> file = serialize_data(data, filename=None,  force=True,
...                          savepath =None, verbose =3)
>>> file