13. Helpers¶
13.1. miplearn.io¶
-
miplearn.io.
gzip
(filename: str) → None¶
-
miplearn.io.
read_pkl_gz
(filename: str) → Any¶
-
miplearn.io.
write_pkl_gz
(objs: List[Any], dirname: str, prefix: str = '', n_jobs: int = 1, progress: bool = False) → List[str]¶
13.2. miplearn.h5¶
-
class
miplearn.h5.
H5File
(filename: str, mode: str = 'r+')¶ Bases:
object
-
close
()¶
-
get_array
(key: str) → Optional[numpy.ndarray]¶
-
get_bytes
(key: str) → Optional[Union[bytes, bytearray]]¶
-
get_scalar
(key: str) → Optional[Any]¶
-
get_sparse
(key: str) → Optional[scipy.sparse.coo.coo_matrix]¶
-
put_array
(key: str, value: Optional[numpy.ndarray]) → None¶
-
put_bytes
(key: str, value: Union[bytes, bytearray]) → None¶
-
put_scalar
(key: str, value: Any) → None¶
-
put_sparse
(key: str, value: scipy.sparse.coo.coo_matrix) → None¶
-