tfjs-vis kitchen sink
tfjs-vis is a small set of visualization utilities to make it easier to understand what is going on with your tfjs models. It is designed in a way to work along side regular web apps. This page is a testbed for the api.
Visor
Render Functions
render.barchart(data, container, options)
Re-rendering
You can update a bar chart by calling
render.barchart
again with the same
container
.
This is also true for any render.* function, to re-render or update just call the function with new data and the same container.
render.table(data, container)
render.histogram(data, container, opts)
re-render histogram
render.linechart(data, container, opts)
Zoom to fit linechart
Truncated linechart: Custom y axis domain
render.scatterplot(data, container, opts)
Zoom to fit scatter plot
Custom domain scatter plot
render.confusionMatrix
The diagonal can also be excluded from shading.
Perfect classification.
In a perfect classification scenario where shadeDiagonal is false the chart will override that option as all values lie on the diagonal.
render.heatmap(data, container, opts)
We can also pass in custom labels
Alternate color maps are also supported.
Tensor2D's are also supported