diff options
author | 2016-07-18 17:35:07 -0800 | |
---|---|---|
committer | 2016-07-18 18:47:59 -0700 | |
commit | 0cf30c0fcb6650a9810ee9cf879605badc1853e3 (patch) | |
tree | b161da346c98f0700a7c2e3510d6a55ac0e94931 | |
parent | 9f8a2729bf6045fbbc30845f34f381778b27ebad (diff) |
Rename some of the smoothing variables and functions to make it easier to
understand.
Change: 127784684
-rw-r--r-- | tensorflow/tensorboard/components/tf-event-dashboard/tf-line-chart.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/tensorboard/components/tf-event-dashboard/tf-line-chart.ts b/tensorflow/tensorboard/components/tf-event-dashboard/tf-line-chart.ts index e21e65dbf8..ed645929f5 100644 --- a/tensorflow/tensorboard/components/tf-event-dashboard/tf-line-chart.ts +++ b/tensorflow/tensorboard/components/tf-event-dashboard/tf-line-chart.ts @@ -146,7 +146,7 @@ module TF { */ private _onDatasetChanged(dataset: Plottable.Dataset) { if (this.smoothingEnabled) { - this.smoothDataset(this.getSmoothDataset(dataset.metadata().name)); + this.resmoothDataset(this.getSmoothDataset(dataset.metadata().name)); this.updateSpecialDatasets(this.smoothDatasets); } else { this.updateSpecialDatasets(this.datasets); @@ -398,11 +398,11 @@ module TF { return this.name2smoothDatasets[name]; } - private smoothDataset(dataset: Plottable.Dataset) { - let data = this.getDataset(dataset.metadata().name).data(); + private resmoothDataset(dataset: Plottable.Dataset) { + let unsmoothedData = this.getDataset(dataset.metadata().name).data(); // EMA with first step initialized to first element. - let smoothedData = _.cloneDeep(data); + let smoothedData = _.cloneDeep(unsmoothedData); smoothedData.forEach((d, i) => { if (i === 0) { return; @@ -456,7 +456,7 @@ module TF { } this.smoothingDecay = decay; - this.smoothDatasets.forEach((d) => this.smoothDataset(d)); + this.smoothDatasets.forEach((d) => this.resmoothDataset(d)); this.updateSpecialDatasets(this.smoothDatasets); } |