artifact
mlte/report/artifact.py
Artifact implementation for MLTE report.
Report
Bases: Artifact
The report artifact contains the results of MLTE model evaluation.
Source code in mlte/report/artifact.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
comments = comments
instance-attribute
A collection of comments for the report.
data = data
instance-attribute
A description of the data used during model evaluation.
model = model
instance-attribute
The intended use of the model under evaluation.
quantitative_analysis = quantitative_analysis
instance-attribute
The quantitative analysis for the evaluation.
system = system
instance-attribute
A system requirements.
system_requirements = system_requirements
instance-attribute
A description of the system requirements.
validated_spec_id = validated_spec_id
instance-attribute
A summary of model performance evaluation.
from_model(model)
classmethod
Convert a report model to its corresponding artifact.
Source code in mlte/report/artifact.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|
get_default_id()
staticmethod
Get the default identifier for the artifact.
Source code in mlte/report/artifact.py
159 160 161 162 |
|
populate_from(artifact)
Populate the contents of a report from a negotiation card.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
artifact
|
NegotiationCard
|
The artifact to populate from |
required |
Returns:
Type | Description |
---|---|
Report
|
The new report artifact with fields populated |
Source code in mlte/report/artifact.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
post_load_hook(context, store)
Override Artifact.post_load_hook().
Parameters:
Name | Type | Description | Default |
---|---|---|---|
context
|
Context
|
The context in which to save the artifact |
required |
store
|
ArtifactStore
|
The store in which to save the artifact |
required |
Raises:
Type | Description |
---|---|
RuntimeError
|
On broken invariant |
Source code in mlte/report/artifact.py
117 118 119 120 121 122 123 124 |
|
pre_save_hook(context, store)
Override Artifact.pre_save_hook(). Loads the associated ValidatedSpec details.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
context
|
Context
|
The context in which to save the artifact |
required |
store
|
ArtifactStore
|
The store in which to save the artifact |
required |
Raises:
Type | Description |
---|---|
RuntimeError
|
On broken invariant |
Source code in mlte/report/artifact.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
to_model()
Convert a report artifact to its corresponding model.
Source code in mlte/report/artifact.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|