From c95c2bf75c2eb1f5826099cee09705f815ec568f Mon Sep 17 00:00:00 2001 From: Mathias Quillot Date: Tue, 5 Nov 2019 15:51:22 +0100 Subject: [PATCH] New script to extract labels --- extract-labels-pv-from-xv.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 extract-labels-pv-from-xv.sh diff --git a/extract-labels-pv-from-xv.sh b/extract-labels-pv-from-xv.sh new file mode 100755 index 0000000..6565075 --- /dev/null +++ b/extract-labels-pv-from-xv.sh @@ -0,0 +1,27 @@ + + +# Number of set +k=4 + + +# Vector features file +DATADIR="data" + +VECTOR_FILE_MASSEFFECT="${DATADIR}/xvectors.txt" + +for kmean in 12 41 45 50 6 69 72 88 +do + echo "KMEAN: ${kmean}" + # Dirs + EXP_DIR="exp/kmeans_euclidian/pv_from_xv/${k}/${kmean}" + CLUSTERING="${EXP_DIR}/clustering_${kmean}.pkl" + + + # Output dirs + OUTFILE_MASSEFFECT="data/pv_from_xv/saved_clustered/masseffect_clustered_${k}_${kmean}.txt" + echo "Extracting" + python3 bin/extract_kmeans.py "${CLUSTERING}" \ + "${VECTOR_FILE_MASSEFFECT}" \ + --outfile "$OUTFILE_MASSEFFECT" + echo "End extracting" +done -- 1.8.2.3