docstr: Save model to a HDF5 file.
  Requires ``h5py`` http://docs.h5py.org/
  
  Parameters
  ----------
  path : str
      Full file path. File must not already exist.
  
  Raises
  ------
  FileExistsError
      If a file with the same path already exists.
docstr_tok: ["Save","model","to","a","HDF5","file",".","Requires","``","h5py","``","http",":","\/\/docs.h5py.org\/","Parameters","--","--","--","--","--","path",":","str","Full","file","path",".","File","must","not","already","exist",".","Raises","--","--","--","FileExistsError","If","a","file","with","the","same","path","already","exists","."]
code: def to_hdf5(self, path):
      """
      Save model to a HDF5 file.
      Requires ``h5py`` http://docs.h5py.org/
  
      Parameters
      ----------
      path : str
          Full file path. File must not already exist.
  
      Raises
      ------
      FileExistsError
          If a file with the same path already exists.
      """
      if not HDF5_INSTALLED:
          raise ImportError(h5py_msg)
  
      d = self._to_dict(output="hdf5")
      hdftools.save_dict(d, path, "data")
  
imports: from abc import ABCMeta, abstractmethod
  from sklearn.exceptions import NotFittedError
  from sklearn.base import BaseEstimator
  import json
  import pickle
  import numpy
  from warnings import warn
label_desc: Use image node_id 8 for calling the BaseModelPackage obj's underlying member method code with example usage: obj.to_hdf5(path) without return types