extract-labels-pv-from-xv.sh 570 Bytes
# 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