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