Skip to content

Commit c789b01

Browse files
author
jenkins
committed
Merge branch 'bitbucket' into github
2 parents 02b986d + ec50b4c commit c789b01

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
lines changed

examples/detection.ipynb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080
"to your proxy server and port before launching Python or Jupyter."
8181
]
8282
},
83+
{
84+
"metadata": {},
85+
"cell_type": "code",
86+
"source": "!pip install torchvision",
87+
"outputs": [],
88+
"execution_count": null
89+
},
8390
{
8491
"cell_type": "code",
8592
"metadata": {},
@@ -133,6 +140,13 @@
133140
"files and run inference with the Torchvision model:"
134141
]
135142
},
143+
{
144+
"metadata": {},
145+
"cell_type": "code",
146+
"source": "!pip install tqdm torch",
147+
"outputs": [],
148+
"execution_count": null
149+
},
136150
{
137151
"cell_type": "code",
138152
"metadata": {},

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ name = "thetis"
77
description = "Solution for AI system analysis regarding performance, uncertainty consistency (calibration), fairness, and other aspects relevant for regulatory compliance."
88
requires-python = ">=3.10"
99
authors = [
10-
{ email = "fabian.kueppers@efs-techhub.com" },
10+
{ email = "thetis@efs-techhub.com" },
1111
{ name = "e:fs TechHub GmbH" }
1212
]
1313
maintainers = [
14-
{ email = "fabian.kueppers@efs-techhub.com" },
14+
{ email = "thetis@efs-techhub.com" },
1515
{ name = "e:fs TechHub GmbH" }
1616
]
1717

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
thetiscore==0.2.3
1+
thetiscore==0.2.4

thetis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
from .mlflow import thetis_mlflow
2525

2626
name = "thetis"
27-
__version__ = "0.2.3"
27+
__version__ = "0.2.4"

thetis/mlflow.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def thetis_mlflow(
1818
annotations: Union[pd.DataFrame, Dict[str, pd.DataFrame]],
1919
description: Dict[str, str] = None,
2020
mlflow_step: Optional[int] = None,
21-
predictions_perturbations: None = None,
21+
robustness_predictions: Optional[Dict[str, Union[pd.DataFrame, Dict[str, pd.DataFrame]]]] = None,
2222
license_file_path: Union[str, os.PathLike] = None,
2323
license_xml_str: str = None,
2424
license_key_and_signature: Tuple[str, str] = None,
@@ -148,15 +148,16 @@ def thetis_mlflow(
148148
coordinates and optionally sensitive attributes. The bounding box columns must correspond to the format
149149
specified in the user configuration. Must also include a "__meta__" key with image metadata.
150150
**Regression:** DataFrame with columns "target" and optionally sensitive attributes.
151-
description: dict containing a description of your AI solution required for creating a technical documentation
151+
description: dict containing a description of your AI solution required for creating a technical documentation
152152
in accordance with Article 11 and Annex IV of the AI Act. The data entered here includes the title,
153153
provider, contact person (intern), contact person (extern), purpose, requirements, forms of distribution,
154154
hardware details and a UI description. These details cannot be automatically filled out and must be provided
155155
manually to ensure the documentation's completeness and transparency. If certain fields in the descriptions
156156
are not filled in, they also remain empty in the technical documentation.
157157
mlflow_step: Optional integer with the current step count to be passed to MLflow's "log_param" function.
158-
predictions_perturbations: AI predictions for each configured perturbation type.
159-
The perturbation type is the key of the dictionary, and each value must have the same format as the "predictions" parameter.
158+
robustness_predictions: Dict with AI predictions for each configured corruption type and intensity.
159+
The dict keys correspond to the directory names of the robustness data directories as created by
160+
create_robustness_images. Each value must have the same format as the "predictions" parameter.
160161
license_file_path: Path to an XML license file to run the application.
161162
license_xml_str: String representation of an XML license file to run the application.
162163
license_key_and_signature: Tuple of license key and signature strings.
@@ -258,7 +259,7 @@ def thetis_mlflow(
258259
annotations=annotations,
259260
description=description,
260261
mlflow_step=mlflow_step,
261-
predictions_perturbations=predictions_perturbations,
262+
robustness_predictions=robustness_predictions,
262263
license_file_path=license_file_path,
263264
license_xml_str=license_xml_str,
264265
license_key_and_signature=license_key_and_signature,

thetis/service.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def thetis(
1818
annotations: Union[pd.DataFrame, Dict[str, pd.DataFrame]],
1919
description: Dict[str, str] = None,
2020
output_dir: Optional[str] = None,
21-
predictions_perturbations: None = None,
21+
robustness_predictions: Optional[Dict[str, Union[pd.DataFrame, Dict[str, pd.DataFrame]]]] = None,
2222
license_file_path: Union[str, os.PathLike] = None,
2323
license_xml_str: str = None,
2424
license_key_and_signature: Tuple[str, str] = None,
@@ -53,7 +53,9 @@ def thetis(
5353
manually to ensure the documentation's completeness and transparency. If certain fields in the descriptions
5454
are not filled in, they also remain empty in the technical documentation.
5555
output_dir: Path to the output directory where the PDF report will be stored. Default is None.
56-
predictions_perturbations: AI predictions for each configured perturbation type.
56+
robustness_predictions: Dict with AI predictions for each configured corruption type and intensity.
57+
The dict keys correspond to the directory names of the robustness data directories as created by
58+
create_robustness_images. Each value must have the same format as the "predictions" parameter.
5759
license_file_path: Path to an XML license file to run the application.
5860
license_xml_str: String representation of an XML license file to run the application.
5961
license_key_and_signature: Tuple of license key and signature strings.
@@ -158,7 +160,7 @@ def thetis(
158160
annotations=annotations,
159161
description=description,
160162
output_dir=output_dir,
161-
predictions_perturbations=predictions_perturbations,
163+
robustness_predictions=robustness_predictions,
162164
license_file_path=license_file_path,
163165
license_xml_str=license_xml_str,
164166
license_key_and_signature=license_key_and_signature,

0 commit comments

Comments
 (0)