Skip to content

Commit

Permalink
config change
Browse files Browse the repository at this point in the history
  • Loading branch information
nikit-srivastava committed Oct 8, 2018
1 parent ef6aa6e commit fcf91e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public class W2VNrmlMemModelKMeans implements GenWord2VecModel {
private float[][] comparisonVecs = null;
private String[] wordArr;
private float[][] vecArr;
private int compareVecCount = 100;
private int compareVecCount = 10;
private int bucketCount = 10;
private int kMeansMaxItr = 10;
private BitSet[][] csBucketContainer;
// TODO : Remove this
private TimeLogger tl = new TimeLogger();
Expand All @@ -51,7 +52,7 @@ public W2VNrmlMemModelKMeans(final Map<String, float[]> word2vec, final int vect
}

private void generateComparisonVectors() {
KMeansPlusPlusClusterer<ClusterableVec> clusterer = new KMeansPlusPlusClusterer<>(compareVecCount, 10);
KMeansPlusPlusClusterer<ClusterableVec> clusterer = new KMeansPlusPlusClusterer<>(compareVecCount, kMeansMaxItr);
List<ClusterableVec> vecList = new ArrayList<>();
for (float[] vec : word2vec.values()) {
vecList.add(getClusterablePoint(vec));
Expand Down

0 comments on commit fcf91e4

Please sign in to comment.