class documentation
class InferenceResult(loggers.ModelLoggerMixin, models.Model):
Results of an inference run of the lymph-model package.
It fetches the HDF5 parameter samples from the DVC remote storage and uses them to compute the prior risk matrices and stores them in an HDF5 file, too.
Class |
|
Undocumented |
Static Method | fetch |
Load the model parameters from the YAML file in the DVC repo. |
Static Method | fetch |
Load the model samples from the HDF5 file in the DVC repo. |
Method | __str__ |
Undocumented |
Method | compute |
Compute the risk matrices for the given model and samples. |
Method | delete |
Delete the HDF5 file containing the risk matrices. |
Method | fetch |
Fetch the release description from the GitHub API. |
Method | get |
Get (create if necessary) lymph model instance from the stored params. |
Method | load |
Load the precomputed and stored prior risk matrices for the given tumor stage and lateralization. |
Method | save |
Compute the risk matrices and store them in the HDF5 file. |
Method | store |
Store the risk matrices in the HDF5 file field on disk. |
Class Variable | git |
Name of the GitHub repository that contains the trained model. |
Class Variable | git |
Owner of the GitHub repository that contains the trained model. |
Class Variable | num |
Number of samples to use for computing the prior risk matrices. |
Class Variable | params |
Path to the YAML file containing the model parameters inside the git repo. |
Class Variable | revision |
Git revision of the trained model. E.g., a commit hash, tag, or branch name. |
Class Variable | risk |
HDF5 file containing the computed prior risk matrices. |
Instance Variable | description |
GitHub release description of the inference run. |
Instance Variable | params |
Parameters to recreate lymph model for risk prediction. |
Property | git |
Return the URL of the GitHub repository. |
Property | is |
Return whether the model is bilateral. |
Property | is |
Return whether the model is midline. |
Property | lnls |
Return a list with the names of the included LNLs. |
Property | t |
Return list of tumor stages. |
Instance Variable | _lymph |
Undocumented |
Load the model parameters from the YAML file in the DVC repo.
Parameters | |
dvcDVCFileSystem | Undocumented |
paramsUnion[ | Undocumented |
Returns | |
Dict[ | Undocumented |
Load the model samples from the HDF5 file in the DVC repo.
Parameters | |
dvcDVCFileSystem | Undocumented |
samplesstr | Undocumented |
numint | Undocumented |
Returns | |
np.ndarray | Undocumented |
Get (create if necessary) lymph model instance from the stored params.
Returns | |
Union[ | Undocumented |
Load the precomputed and stored prior risk matrices for the given tumor stage and lateralization.
Parameters | |
tstr | Undocumented |
midlineOptional[ | Undocumented |
Returns | |
np.ndarray | Undocumented |
overrides
lyprox.loggers.ModelLoggerMixin.save
Compute the risk matrices and store them in the HDF5 file.