Skip to content

Commit d249b46

Browse files
pranayaryalNikhil Thorat
authored and
Nikhil Thorat
committed
Make canvases of loss and accuracy plots wider. (#56)
1 parent b758e91 commit d249b46

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ npm run watch
2626

2727
The convention is that each example contains two scripts:
2828

29-
- `yarn watch`: starts a local development HTTP server which watches the
29+
- `yarn watch` or `npm run watch`: starts a local development HTTP server which watches the
3030
filesystem for changes so you can edit the code (JS or HTML) and see changes when you refresh the page immediately.
3131

32-
- `yarn build`: generates a `dist/` folder which contains the build artifacts and
32+
- `yarn build` or `npm run build`: generates a `dist/` folder which contains the build artifacts and
3333
can be used for deployment.
3434

3535
## Contributing

mnist/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
padding: 15px;
2626
}
2727
canvas {
28+
width: 200px;
29+
}
30+
.prediction-canvas{
2831
width: 100px;
2932
}
3033
.pred {

mnist/ui.js

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function showTestResults(batch, predictions, labels) {
4141
div.className = 'pred-container';
4242

4343
const canvas = document.createElement('canvas');
44+
canvas.className = 'prediction-canvas';
4445
draw(image.flatten(), canvas);
4546

4647
const pred = document.createElement('div');

0 commit comments

Comments
 (0)