From 951730386ef6fba4d59d8f92e112dc01c52f81be Mon Sep 17 00:00:00 2001 From: NamCaoHai Date: Thu, 7 Nov 2024 09:35:36 +0000 Subject: [PATCH] refactor code Signed-off-by: NamCaoHai --- pymilvus/client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/client/utils.py b/pymilvus/client/utils.py index d400d28a4..aed8ee735 100644 --- a/pymilvus/client/utils.py +++ b/pymilvus/client/utils.py @@ -392,4 +392,4 @@ def convert_to_standard_form(vector_data: Any) -> Any: row_stds = np.std(vector_data, axis=1, keepdims=True) # Standardize each row independently - return np.where(row_stds != 0, (vector_data - row_means) / row_stds, vector_data) \ No newline at end of file + return np.where(row_stds != 0, (vector_data - row_means) / row_stds, vector_data)