PySS3 provides two main interactive visualization tools that users can use to analyze, monitor and understand what their models are learning and why they have done it.
The Live Test tool is is an interactive visualization tool that allows you to actively test you models. This tool can be lunched with a single line of python code (or a single
PySS3 command), and it will provide a user interface (see Figure 1) with which you can manually test the model using either a preloaded set of documents (for example, giving the
x_test list or the path to a test set) or just letting you to type in your own documents. This tool will allow you to visually analyze and understand what your models are actually learning, at different levels (word n-grams, sentences, and paragraphs).
To learn how to lunch the Live Test visualization tool, using python or the
PySS3 Command Line tool, we highly recommend doing both Tutorials.
The evaluation plot can be automatically generated by the
PySS3 Command Line tool using any of the following commands:
save evaluations— saves the interactive plot in a single and portable HTML file (“ss3_model_evaluation[model_name].html”) in the current directory.
plot evaluations— not only saves the plot but also opens it up in your web browser.
As shown in the figure below, in this plot, each data point represents an evaluation/experiment performed using a particular combinations of hyperparameter values (
p). These points are colored, using the viridis colormap, in relation to how good the performance was. The points with the global best performance are marked in pink.
The performance measure can be interactively changed using the options panel in the upper-left corner, as shown below.
When you move the cursor over a data point, information related to that evaluation is shown, including a “compact” version of the obtained confusion matrix.
And when k-fold cross-validation is used, it is shown the confusion matrix obtained in each fold. For example, the following image shows a data point for a 10-fold cross-validation evaluation:
Additionally, when you click a data point, a list of useful commands for the
PySS3 Command Line is shown, as shown below.
Finally, using the options panel you can hide and show different parts of the plot. For instance, if you simply want to see the performance “pattern” in terms of the three hyperparameters, you can use “show volume” option as show below:
This will allow you to better analyze the relationship between hyperparameters and performance.