model_navigator.api.package.save(package, path, override=False, save_data=True)
Save export results into the .nav package at given path.
Parameters:
-
package
(
Package
)
–
A package object to prepare the package
-
path
(
Union[str, Path]
)
–
A path to file where the package has to be saved
-
override
(
bool
, default:
False
)
–
flag to override existing package in provided path
-
save_data
(
bool
, default:
True
)
–
disable saving samples from the dataloader
Source code in model_navigator/api/package.py
| def save(
package: Package,
path: Union[str, pathlib.Path],
override: bool = False,
save_data: bool = True,
) -> None:
"""Save export results into the .nav package at given path.
Args:
package: A package object to prepare the package
path: A path to file where the package has to be saved
override: flag to override existing package in provided path
save_data: disable saving samples from the dataloader
"""
builder = PackageBuilder()
builder.save(
package=package,
path=path,
override=override,
save_data=save_data,
)
|