Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: NamCaoHai <[email protected]>
  • Loading branch information
CaoHaiNam committed Nov 8, 2024
1 parent dee71bc commit 9517303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return np.where(row_stds != 0, (vector_data - row_means) / row_stds, vector_data)

0 comments on commit 9517303

Please sign in to comment.