HomeGuidesAPI ReferenceChangelog
Log In
API Reference

ModelFile

defines a model file stored in the model repository alongside a ModelInfo.

Attributes

NameTypeDescription
full_pathstrabsolute path of the file in the repository.
pathstrrelative file path (e.g. 'trained_model.pkl').
namestrfile name without extension.
extensionstrfile extension (e.g. 'pkl', 'pt').
last_modifiedinttimestamp of last modification.
sizeintfile size in bytes.
contentbytesarray of content bytes.

Methods

from_json()

load the file metadata from a dict.

NameTypeDefaultDescription
objobject to load information from.

to_json()

convert the file metadata to a JSON-compatible dictionary.

return: dict representation.