From 16cf68aee65ec11ff019156e65ee261a29f6c17a Mon Sep 17 00:00:00 2001 From: Mathias Quillot Date: Wed, 11 Sep 2019 22:19:51 +0200 Subject: [PATCH] Extract files --- extract-labels.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 extract-labels.sh diff --git a/extract-labels.sh b/extract-labels.sh new file mode 100755 index 0000000..34ea1f4 --- /dev/null +++ b/extract-labels.sh @@ -0,0 +1,22 @@ + + +# Number of set +k=4 + +# Vector features file +VECTOR_FILE_MASSEFFECT="data/pvectors_1rst/pvectors_teacher_${k}.txt" + +# Number of clusters +kmean=6 + +# Dirs +EXP_DIR="exp/kmeans_euclidian/teacher-pvector-1/${k}/${kmean}" +CLUSTERING="${EXP_DIR}/clustering_${kmean}.pkl" + + +# Output dirs +OUTFILE_MASSEFFECT="data/pvectors_1rst/saved_clustered/masseffect_clustered_${k}_${kmean}.txt" + +python3 bin/extract_kmeans.py "${CLUSTERING}" \ + "${VECTOR_FILE_MASSEFFECT}" \ + --outfile "$OUTFILE_MASSEFFECT" -- 1.8.2.3