Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6740,12 +6740,13 @@ <h2>Show similarity to selected datapoint</h2>
calculateBucketEdges_: function(feature, numBuckets) {
if (
!this.isNumericFeature_(feature) ||
// No point in aggregating if less unique values than buckets.
this.stats[feature].uniqueCount < numBuckets ||
// No point in aggregating if not more unique values than buckets.
this.stats[feature].uniqueCount <= numBuckets ||
// Already done.
(this.featureBucketEdges_[feature] &&
this.featureBucketEdges_[feature].length == numBuckets + 1)
) {
delete this.featureBucketEdges_[feature];
return;
}
const min = this.stats[feature].numberMin;
Expand Down