Blame view

extract-labels.sh 452 Bytes
16cf68aee   Mathias Quillot   Extract files
1
2
3
4
  
  
  # Number of set
  k=4
95142dfdc   Mathias Quillot   maj. No comment
5
  kmean=88
16cf68aee   Mathias Quillot   Extract files
6
7
  
  # Vector features file
95142dfdc   Mathias Quillot   maj. No comment
8
  VECTOR_FILE_MASSEFFECT="data/xvectors.txt"
16cf68aee   Mathias Quillot   Extract files
9

16cf68aee   Mathias Quillot   Extract files
10
11
  
  # Dirs
95142dfdc   Mathias Quillot   maj. No comment
12
  EXP_DIR="exp/kmeans_euclidian/xvectors/${k}/${kmean}"
16cf68aee   Mathias Quillot   Extract files
13
14
15
16
  CLUSTERING="${EXP_DIR}/clustering_${kmean}.pkl"
  
  
  # Output dirs
95142dfdc   Mathias Quillot   maj. No comment
17
  OUTFILE_MASSEFFECT="data/xvectors/saved_clustered/masseffect_clustered_xvectors_${k}_${kmean}.txt"
16cf68aee   Mathias Quillot   Extract files
18
19
20
21
  
  python3 bin/extract_kmeans.py "${CLUSTERING}" \
          "${VECTOR_FILE_MASSEFFECT}" \
          --outfile "$OUTFILE_MASSEFFECT"