Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
ghmark675
2025-11-15 15:55:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30b815af9baada1b6dc94ea053a367ce4f5c83bf
30b815af
1 parent
3084df6d
refactor(insight_agent): replace np.where(...) index extraction with np.flatnonzero for clarity
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
InsightEngine/agent.py
InsightEngine/agent.py
View file @
30b815a
...
...
@@ -161,7 +161,7 @@ class DeepSearchAgent:
# 从每个聚类采样
sampled_results
=
[]
for
cluster_id
in
range
(
n_clusters
):
cluster_indices
=
np
.
where
(
labels
==
cluster_id
)[
0
]
cluster_indices
=
np
.
flatnonzero
(
labels
==
cluster_id
)
cluster_results
=
[(
results
[
i
],
i
)
for
i
in
cluster_indices
]
cluster_results
.
sort
(
key
=
lambda
x
:
x
[
0
]
.
hotness_score
or
0
,
reverse
=
True
...
...
Please
register
or
login
to post a comment