Recent developments in machine learning applications are deeply concerned with the poor interpretability of most of these techniques. To gain some insights in the process of designing data-based models it is common to graphically represent the algorithm’s results, either in their final or intermediate stage. Specially challenging is the task of plotting multiclass classification results as they involve categorical variables (classes) rather than numeric results. Using the well-known MNIST dataset and a simple neural network as an example, this paper reviews the existing techniques to visualize classification results, from those centered on a particular instance or set of instances, to those representing an overall performance metric. As classification results are commonly summarized in the form of a confusion matrix, special attention is paid to its graphical representation. From this analysis, a new visualization tool is derived, which is presented in two forms: confusion star and confusion gear. The confusion star is centered on the classification errors, while the confusion gear focuses on the classification hits. The proposed visualization tools are also evaluated when facing: (i) balanced and imbalanced classifiers issues; (ii) the problem of representing errors with different orders of magnitude. By using shapes instead of colors to represent the value of each matrix cell, the new tools significantly improve the readability of the confusion matrices. Furthermore, we show how the area enclosed by the confusion stars and gears are directly related to standard classification metrics. The new graphic tools can be also usefully employed to visualize the performances of a sequence of classifiers.
In many engineering applications, continuous-time models are preferred to discrete-time ones, in that they provide good physical insight and can be derived also from non-uniformly sampled data. However, for such models, model selection is a hard task if no prior physical knowledge is given. In this paper, we propose a non-parametric approach to infer a continuous-time linear model from data, by automatically selecting a proper structure of the transfer function and guaranteeing to preserve the system stability properties. By means of benchmark simulation examples, the proposed approach is shown to outperform state-of-the-art continuous-time methods, also in the critical case when short sequences of canonical input signals, like impulses or steps, are used for model learning.