From bbdd477f3eef50afa5156b8279bf8f904e02b681 Mon Sep 17 00:00:00 2001 From: elizawetta Date: Sun, 22 Dec 2024 20:21:40 +0300 Subject: [PATCH 1/2] fix: change requirements --- hc/requirements.txt | 10 +++++----- requirements.txt | 10 ++++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/hc/requirements.txt b/hc/requirements.txt index 78f2607..aec4c41 100644 --- a/hc/requirements.txt +++ b/hc/requirements.txt @@ -1,5 +1,5 @@ -numpy -scikit-learn -networkx -pytest -matplotlib \ No newline at end of file +numpy==1.26.4 +scikit-Learn==1.6.0 +networkx==3.2.1 +pytest==8.3.4 +matplotlib==3.6.2 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6d2d76b..46b2e26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,10 @@ -bamt==1.1.44 +bamt==1.1.47 optuna==2.10.1 pgmpy==0.1.20 -pandas==1.5.2 \ No newline at end of file +pandas==1.5.2 +numpy==1.26.4 +scikit-Learn==1.6.0 +networkx==3.2.1 +pytest==8.3.4 +matplotlib==3.6.2 +lightgbm==4.5.0 \ No newline at end of file From 48ff34b143e78353a07514747892044d537bc501 Mon Sep 17 00:00:00 2001 From: elizawetta Date: Sun, 22 Dec 2024 20:30:27 +0300 Subject: [PATCH 2/2] fix second example --- hc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc/README.md b/hc/README.md index 68fae6e..bc1d8be 100644 --- a/hc/README.md +++ b/hc/README.md @@ -46,7 +46,7 @@ print("Кластеры:", labels) ```python from hypergraph_clustering.clustering.auto_clustering import AutoClusterHypergraphClustering -clustering = AutoClusterHypergraphClustering(linkage="average", max_clusters=5, scoring="silhouette") +clustering = AutoClusterHypergraphClustering(linkage="average", max_clusters=4, scoring="silhouette") labels = clustering.fit(adjacency_matrix) print("Кластеры:", labels)