DemandFunction.from_npz¶
- classmethod DemandFunction.from_npz(data, shared=None, prefix: str = '', **kwargs) LinearDemandFunction | AffineDemandFunction [source]¶
Construct object from
.npz
file.- Parameters
- sharedShared
Shared object for network classes.
- datastr or NpzFile
Filename as str or NpzFile.
- prefixstr, default=””
Object data is stored with
key = (prefix + internal_name)
.
- Returns
- obj
Object.
See also
numpy.lib.npyio.NpzFile