diff --git a/pkg/api/aim/runs.go b/pkg/api/aim/runs.go index 0781cf5ab..4d46f72b6 100644 --- a/pkg/api/aim/runs.go +++ b/pkg/api/aim/runs.go @@ -1032,6 +1032,12 @@ func DeleteBatch(c *fiber.Ctx) error { func toNumpy(values []float64) fiber.Map { buf := bytes.NewBuffer(make([]byte, 0, len(values)*8)) for _, v := range values { + switch v { + case math.MaxFloat64: + v = math.Inf(1) + case -math.MaxFloat64: + v = math.Inf(-1) + } binary.Write(buf, binary.LittleEndian, v) } return fiber.Map{