public void sampleTopicsForDocs (int start, int length, Randoms r) { assert (start+length <= docTopicCounts.length); double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = start; di < start+length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }
public void sampleTopicsForAllDocs (Randoms r) { double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = 0; di < topics.length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }
public void sampleTopicsForAllDocs (Randoms r) { double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = 0; di < topics.length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }
public void sampleTopicsForAllDocs (Randoms r) { double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = 0; di < topics.length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }
public void sampleTopicsForDocs (int start, int length, Randoms r) { assert (start+length <= docTopicCounts.length); double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = start; di < start+length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }
public void sampleTopicsForDocs (int start, int length, Randoms r) { assert (start+length <= docTopicCounts.length); double[] topicWeights = new double[numTopics]; // Loop over every word in the corpus for (int di = start; di < start+length; di++) { sampleTopicsForOneDoc ((FeatureSequence)ilist.get(di).getData(), topics[di], docTopicCounts[di], topicWeights, r); } }