Skip to content

1.0.1#9

Open
owendall wants to merge 6 commits intomimno:masterfrom
agile-innovations:1.0.1
Open

1.0.1#9
owendall wants to merge 6 commits intomimno:masterfrom
agile-innovations:1.0.1

Conversation

@owendall
Copy link

See the change to calculation of the document-topic probabilities in the downloads section.

See notes below:

 documents.forEach(function(d, i) {
       // 2016-09-25 Owen Dall: Don't use d.tokens.length as it includes stopwords not included in topicCounts
      var tokenSum = d3.sum(d.topicCounts);
      topicProbabilities  = d.topicCounts.map(function (topicTokenCount) { return d3.round(topicTokenCount / tokenSum, 8); });
      docTopicsCSV += d.id + "," + topicProbabilities.join(",") + exportRecordDelimiter;
      // docTopicsCSV += d.id + "," + d.topicCounts.map(function (x) { return d3.round(x / d.tokens.length, 8); }).join(",") + exportRecordDelimiter;
   });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant