Download Researcher`s Workbench User Manual
Transcript
| 31 7 Error Analysis Machine learning is an iterative process with three main steps. First, to take your data from unstructured text to something useful for quantitative analysis, you must perform some sort of feature extraction to generate a feature table (Chapters 4 and 5). Next, that feature table must be parsed and used to train a model that can discover the latent pattern in those features (Chapter 6). Finally, the performance of that model needs to be analyzed, so that you know where you’ve gone in the right direction and where your model is hitting a wall. Many people forget this final step. Once a baseline number is reported, the story ends for many machine learning packages. With LightSide, we want to open up that analysis step, asking researchers to look at their own data and deeply understand the behavior of their models rather than trusting a high-dimensional feature space and relying on arcane statistical techniques. Are they effective? Probably. But if you can’t explain the reason behind that effectiveness, it will be difficult to apply the models you train in a real-world setting with any sort of validity or acceptance from those who could be affected by that model’s decisions. LightSide is designed to open up that analysis component. We take two approaches to understanding your data. First, we want to look at individual features, to know what parts of your representation are causing the most shift in a model’s accuracy. Next, though, is to move beyond the aggregate and start looking at where those features occur in individual instances. Only by really reading the text of the examples that you’re evaluating can you make any progress towards building meaning. By doing this, we make machine learning iterative. There is no longer a stopping point at a model’s accuracy calculation, after which you simply throw up your hands and accept the performance that’s been reported to you. Instead, there’s a deep process of understanding that can come next, which will allow you to know where to adjust your model’s tuning, where to add finesse to your feature space representations, and how you might make your model better. This is an extraordinarily complicated goal. Understanding machine learning is not something that can be undertaken with no assistance. To that end, we’ve developed the Explore Results tab within LightSide solely to assist by giving tools. However, because of the depth available, it’s not going to be easy off the bat. If you don’t understand a particular part of the interface, though, that doesn’t mean that you can’t use other parts. Even using a subset of the tools we use gives you more control over your data than you’re likely to get elsewhere. In this chapter, we’re going to take a slightly different approach to teaching. First, I’ll walk through every part of the user interface with an explanation of its function, but little exposition. At the end of the chapter, we’ll go through a worked example of a dataset that can be analyzed using these tools, to show how you might have an impact on your own understanding of your model.