Skip to content

Commit

Permalink
Fixed status bar updating
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Aug 6, 2018
1 parent 6fdd6e9 commit 50c68f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion plyto/keras_accuracy_loss_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,7 @@ def on_batch_end(self, batch, logs={}):
"accuracy": self.accuracy,
}
)
if self.total_progress % 256 == 0 or self.total_progress == (self.epochs * self.sample_amount):
if self.total_progress % 256 == 0 or self.total_progress == (
self.epochs * self.sample_amount
):
self.plyto.send_data()
10 changes: 9 additions & 1 deletion src/ModelViewWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ class ModelViewPanel extends React.Component<
}

render() {
let options = {
actions: {
export: true,
source: false,
compiled: false,
editor: false
}
};
if (this.state.updateGraph && this.state.dataSet.length !== 0) {
this.state.spec.forEach(spec => {
VegaEmbed('#' + spec['name'], spec).then(res => {
VegaEmbed('#' + spec['name'], spec, options).then(res => {
res.view.insert('dataSet', this.state.dataSet).run();
});
});
Expand Down

0 comments on commit 50c68f2

Please sign in to comment.