Requesting multiple metrics sometimes give different results to requesting them individually
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu với lệnh gọi get_metric_values và chạy bản tái hiện được cung cấp trên trial3 bằng cả hai cấu hình metric_names. So sánh các giá trị được trả về cho timestamp chung; hoàn tất khi việc yêu cầu nhiều metric giữ nguyên giá trị được trả về khi metric bị ảnh hưởng được yêu cầu riêng lẻ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description of Bug
Sometimes, when a single metric is requested with get_metric_values, it returns a value for a particular time. But if both that metric and another are requested simultaneously, even if they both have a value at the same time, the value returned for the first metric is None.
Steps To Reproduce
Run this, noting that the run is on trial3. then comment out line 7, uncomment line 8, and run it again:
import simvue
run_id = "AZPKJLrtwr3ZerLi4QNnu8"
client = simvue.Client()
metric_names = ["soot_visibility.z.7_0.avg", "soot_visibility.z.37_0.avg"]
#metric_names = ["soot_visibility.z.7_0.avg"]
all_metric_values = client.get_metric_values(metric_names, 'time', run_ids=[run_id])
for (metric_name, single_metric_values) in all_metric_values.items():
print(f"{metric_name}: {list(single_metric_values.items())[-1]}")
Output:
soot_visibility.z.37_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), 29.584584259066062)
soot_visibility.z.7_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), None)
Output with line 8 instead of 7:
soot_visibility.z.7_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), 19.169060055914873)
Setup
- OS: Ubuntu
- python-api version v2.3.5
- Ngôn ngữ chính
- Python
- Star
- 4
- Fork
- 1
- Merge trung bình
- 5 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của simvue-io/python-api
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
simvue-io/python-api#994 ·
-
Doesn't work in python 3.10 Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
simvue-io/python-api#986 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
simvue-io/python-api#538 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
simvue-io/python-api#1004 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
simvue-io/python-api#1000 · 2 bình luận ·
Tất cả issue của simvue-io/python-api
Issue tương tự
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
bancolombia/sentinel#23 ·
-
test md Đang mởCI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100