The Model object is an interface to a model file on the disk. The
model file itself is simply a directory or zip-archive storing all the
files that result from TEES being trained. In addition, it can store
named string values for saved settings etc.
When a member of a model is accessed, it is copied to a temporary
cache directory. When a model is saved, files that have changed in the
cache are copied to the model directory/archive. Note that for both files
and strings that are added to the model, are saved to it only when
Model.save is called.
|
__init__(self,
path,
mode=' r ' ,
verbose=True,
compression=8)
Make a new model or open an existing one |
source code
|
|
|
|
|
|
|
|
|
|
|
importFrom(self,
model,
members,
strings=None)
Copy several members from another model |
source code
|
|
|
addStrings(self,
dict)
Add multiple name/value pairs |
source code
|
|
|
|
|
getStr(self,
name,
defaultIfNotExist=NOTHING,
asType=None)
Get a named string from the model |
source code
|
|
|
|
|
saveAs(self,
outPath)
Save a model with a different name. |
source code
|
|
|
|
|
get(self,
name,
addIfNotExist=False)
Return a file member from the model. |
source code
|
|
|
|
|
|
|
|
|
|
|
|