Commit c95c2bf75c2eb1f5826099cee09705f815ec568f
1 parent
95142dfdc5
Exists in
master
New script to extract labels
Showing 1 changed file with 27 additions and 0 deletions Side-by-side Diff
extract-labels-pv-from-xv.sh
1 | + | |
2 | + | |
3 | +# Number of set | |
4 | +k=4 | |
5 | + | |
6 | + | |
7 | +# Vector features file | |
8 | +DATADIR="data" | |
9 | + | |
10 | +VECTOR_FILE_MASSEFFECT="${DATADIR}/xvectors.txt" | |
11 | + | |
12 | +for kmean in 12 41 45 50 6 69 72 88 | |
13 | +do | |
14 | + echo "KMEAN: ${kmean}" | |
15 | + # Dirs | |
16 | + EXP_DIR="exp/kmeans_euclidian/pv_from_xv/${k}/${kmean}" | |
17 | + CLUSTERING="${EXP_DIR}/clustering_${kmean}.pkl" | |
18 | + | |
19 | + | |
20 | + # Output dirs | |
21 | + OUTFILE_MASSEFFECT="data/pv_from_xv/saved_clustered/masseffect_clustered_${k}_${kmean}.txt" | |
22 | + echo "Extracting" | |
23 | + python3 bin/extract_kmeans.py "${CLUSTERING}" \ | |
24 | + "${VECTOR_FILE_MASSEFFECT}" \ | |
25 | + --outfile "$OUTFILE_MASSEFFECT" | |
26 | + echo "End extracting" | |
27 | +done |