ObjectIOMixin#

class scikitplot.annoy.ObjectIOMixin[source]#

Persistence for the Python object (Index/Annoy alias), not the raw Annoy index file.

This relies on __reduce__ from PickleMixin, so it stays stable across pickle/joblib/cloudpickle.

dump_binary(path, *, backend='pickle')[source]#
Parameters:
  • path (str)

  • backend (Literal['pickle', 'joblib', 'cloudpickle'])

Return type:

None

classmethod load_binary(path, *, backend='pickle')[source]#
Parameters:
  • path (str)

  • backend (Literal['pickle', 'joblib', 'cloudpickle'])

Return type:

Self

classmethod load_from_file(path)[source]#
Parameters:

path (str)

Return type:

Self

save_to_file(path)[source]#
Parameters:

path (str)

Return type:

None