Welcome to Drain3 Discussions! #60
davidohana
announced in
Announcements
Replies: 1 comment 2 replies
-
Hi, why, in some cases, can we find some cluster ids that exist in the out of drain3, but if we check the result of the below code we cannot find those? ...
print(f"--- Summary:")
drain_sorted_clusters = sorted(template_miner.drain.clusters, key=lambda it: it.size, reverse=True)
counter = 0
# The type of the cluster is <class 'drain3.cluster.Cluster'>
# (Referece: https://github.com/logpai/Drain3/blob/master/drain3/drain.py)
for cluster in drain_sorted_clusters:
if cluster.size == 1:
counter += 1
logger.info(cluster)
logger.info(f"We have {counter} clusters with size 1.")
... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions