validmind 2.2.4__py3-none-any.whl → 2.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- validmind/__version__.py +1 -1
- validmind/ai.py +5 -7
- validmind/utils.py +9 -2
- validmind/vm_models/test/threshold_test.py +1 -0
- {validmind-2.2.4.dist-info → validmind-2.2.5.dist-info}/METADATA +1 -1
- {validmind-2.2.4.dist-info → validmind-2.2.5.dist-info}/RECORD +9 -9
- {validmind-2.2.4.dist-info → validmind-2.2.5.dist-info}/LICENSE +0 -0
- {validmind-2.2.4.dist-info → validmind-2.2.5.dist-info}/WHEEL +0 -0
- {validmind-2.2.4.dist-info → validmind-2.2.5.dist-info}/entry_points.txt +0 -0
validmind/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.2.
|
1
|
+
__version__ = "2.2.5"
|
validmind/ai.py
CHANGED
@@ -31,7 +31,8 @@ Highlight the key insights from the test results. The key insights should be con
|
|
31
31
|
End the response with any closing remarks, summary or additional useful information.
|
32
32
|
|
33
33
|
Use the following format for the response (feel free to modify slightly if necessary):
|
34
|
-
|
34
|
+
|
35
|
+
<ResponseFormat>
|
35
36
|
**<Test Name>** calculates the xyz <continue to explain what it does in detail>...
|
36
37
|
|
37
38
|
This test is useful for <explain why and for what this test is useful>...
|
@@ -42,8 +43,7 @@ The following key insights can be identified in the test results:
|
|
42
43
|
|
43
44
|
- **<key insight 1 - title>**: <concise explanation of key insight 1>
|
44
45
|
- ...<continue with any other key insights using the same format>
|
45
|
-
|
46
|
-
It is very important that the text is nicely formatted and contains enough information to be useful to the user as documentation.
|
46
|
+
</ResponseFormat>
|
47
47
|
""".strip()
|
48
48
|
|
49
49
|
|
@@ -161,8 +161,7 @@ def generate_description_async(
|
|
161
161
|
],
|
162
162
|
)
|
163
163
|
.choices[0]
|
164
|
-
.message.content.strip(
|
165
|
-
.strip()
|
164
|
+
.message.content.strip()
|
166
165
|
)
|
167
166
|
|
168
167
|
return (
|
@@ -194,8 +193,7 @@ def generate_description_async(
|
|
194
193
|
],
|
195
194
|
)
|
196
195
|
.choices[0]
|
197
|
-
.message.content.strip(
|
198
|
-
.strip()
|
196
|
+
.message.content.strip()
|
199
197
|
)
|
200
198
|
|
201
199
|
|
validmind/utils.py
CHANGED
@@ -459,7 +459,13 @@ def md_to_html(md: str, mathml=False) -> str:
|
|
459
459
|
return html
|
460
460
|
|
461
461
|
|
462
|
-
def get_description_metadata(
|
462
|
+
def get_description_metadata(
|
463
|
+
test_id,
|
464
|
+
default_description,
|
465
|
+
summary=None,
|
466
|
+
figures=None,
|
467
|
+
prefix="metric_description",
|
468
|
+
):
|
463
469
|
"""Get Metadata Dictionary for a Test or Metric Result
|
464
470
|
|
465
471
|
Generates an LLM interpretation of the test results or uses the default
|
@@ -476,6 +482,7 @@ def get_description_metadata(test_id, default_description, summary=None, figures
|
|
476
482
|
default_description (str): The default description for the test
|
477
483
|
summary (Any): The test summary or results to interpret
|
478
484
|
figures (List[Figure]): The figures to attach to the test suite result
|
485
|
+
prefix (str): The prefix to use for the content ID (Default: "metric_description")
|
479
486
|
|
480
487
|
Returns:
|
481
488
|
dict: The metadata object to be logged with the test results
|
@@ -493,6 +500,6 @@ def get_description_metadata(test_id, default_description, summary=None, figures
|
|
493
500
|
description = default_description
|
494
501
|
|
495
502
|
return {
|
496
|
-
"content_id": f"
|
503
|
+
"content_id": f"{prefix}:{test_id}::{revision_name}",
|
497
504
|
"text": description,
|
498
505
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
validmind/__init__.py,sha256=XqPjCbFMvEYl0cIT42EZKP7DFMYDC7KDW6syo8MGkDg,3682
|
2
|
-
validmind/__version__.py,sha256=
|
3
|
-
validmind/ai.py,sha256=
|
2
|
+
validmind/__version__.py,sha256=r1Tn-QXWA9VMrkPdk9c6Clll9uei6qKO7PemQL_uDYI,22
|
3
|
+
validmind/ai.py,sha256=7iJtKD7G27HLabNKUmVSD_tCbJH62BEqbrlv2IB8sHI,6881
|
4
4
|
validmind/api_client.py,sha256=A8RLYFdRGdffXkd1qTa0o2_yy6e491N1o17KHHXmb8I,16035
|
5
5
|
validmind/client.py,sha256=S_FozHlMJBgF8IQJES27LeFoYcoCcGZ6dkxE8adyIRQ,18607
|
6
6
|
validmind/client_config.py,sha256=58L6s6-9vFWC9vkSs_98CjV1YWmlksdhblJtPQxQsAk,1611
|
@@ -279,7 +279,7 @@ validmind/unit_metrics/regression/sklearn/MeanAbsoluteError.py,sha256=LCNgpDw6FB
|
|
279
279
|
validmind/unit_metrics/regression/sklearn/MeanSquaredError.py,sha256=7UQnDTTO7yRRyMe3Zac9ZyjEbbD8pW_8WnZwHdVB_8U,463
|
280
280
|
validmind/unit_metrics/regression/sklearn/RSquaredScore.py,sha256=h9U5ndtnJfNNtKPZIo5n3KRp-m4akQcEo0t1iSwjVzY,420
|
281
281
|
validmind/unit_metrics/regression/sklearn/RootMeanSquaredError.py,sha256=_5IQIU9jNfmTE4NLJvaRWXbudRGV2PS7nYF5e4fkSMY,556
|
282
|
-
validmind/utils.py,sha256=
|
282
|
+
validmind/utils.py,sha256=ckmtwpKvlUAbW4atFWOb8NWqhiz0LurXoqMtI2qq26Y,16342
|
283
283
|
validmind/vm_models/__init__.py,sha256=lmWCD2u4tW6_AH39UnJ24sCcMUcsHbUttz7SaZfrh3s,1168
|
284
284
|
validmind/vm_models/dataset/__init__.py,sha256=U4CxZjdoc0dd9u2AqBl5PJh1UVbzXWNrmundmjLF-qE,346
|
285
285
|
validmind/vm_models/dataset/dataset.py,sha256=VlR5Wp5pCoXY3U0C8AbevaySFGf0KJ3QIK3go5OEbog,21843
|
@@ -292,15 +292,15 @@ validmind/vm_models/test/output_template.py,sha256=njqCAMyLxwadkCWhACVskyL9-psTg
|
|
292
292
|
validmind/vm_models/test/result_summary.py,sha256=QJcIKJUeBf5wW3lyue6ctsi1jKSyoiAIfmjudGJiJtc,2028
|
293
293
|
validmind/vm_models/test/result_wrapper.py,sha256=e0hN_oE31g64PU39zYes-PBgqd05TRXRUKF87VnjMUk,17654
|
294
294
|
validmind/vm_models/test/test.py,sha256=434PqhPcbwfCmNjYVwHGMG-rViIatb9-1nmxkdZF8Xo,3104
|
295
|
-
validmind/vm_models/test/threshold_test.py,sha256=
|
295
|
+
validmind/vm_models/test/threshold_test.py,sha256=7d46Z5N_U1hTr6LGa2A0_ZuaIFl54xZ_eRzgf-KUGjk,3662
|
296
296
|
validmind/vm_models/test/threshold_test_result.py,sha256=EXP-g_e3NsnpkvNgYew030qVUoY6ZTHyuuFUXaq-BuM,1954
|
297
297
|
validmind/vm_models/test_context.py,sha256=AN7-atBgOcD04MLVitCFJYooxF6_iNmvI2H4nkv32iw,9035
|
298
298
|
validmind/vm_models/test_suite/runner.py,sha256=U93TauwLNEbAgJIzBZ9k9ip9NnlTt0gACHVgfO7J9BI,6754
|
299
299
|
validmind/vm_models/test_suite/summary.py,sha256=GpqabqN_RcI5vbv4-A9YCLTpUOTKockp6oL1hi8IwVs,4541
|
300
300
|
validmind/vm_models/test_suite/test.py,sha256=cIa-6_YkFp7Io4wBkr09aFNmljmUFSagV4JreLd1Q6Y,5285
|
301
301
|
validmind/vm_models/test_suite/test_suite.py,sha256=Cns2wL54v0T5Mv5_HJb3kMeaa4rtycdqT8KxK9_rWEU,6279
|
302
|
-
validmind-2.2.
|
303
|
-
validmind-2.2.
|
304
|
-
validmind-2.2.
|
305
|
-
validmind-2.2.
|
306
|
-
validmind-2.2.
|
302
|
+
validmind-2.2.5.dist-info/LICENSE,sha256=XonPUfwjvrC5Ombl3y-ko0Wubb1xdG_7nzvIbkZRKHw,35772
|
303
|
+
validmind-2.2.5.dist-info/METADATA,sha256=a8SDCtFs4QR76UFHhVR2olxYIvPODKUTiInrAW9ZDCI,3911
|
304
|
+
validmind-2.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
305
|
+
validmind-2.2.5.dist-info/entry_points.txt,sha256=HuW7YyOv9u_OEWpViQXtv0nfoI67uieJHawKWA4Hv9A,76
|
306
|
+
validmind-2.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|