Changed the method for extracting high in and out degree nodes to be more nuanced than just extracting any node with in or out degree greater than 4.
Changed the method for extracting high in and out degree nodes to be more nuanced than just extracting any node with in or out degree greater than 4.

Specifically, the new method is:

Unlike previously, allow Variable nodes to be extracted.
If the graph has fewer than 15 nodes:
  Do not extract any nodes.
Else:
  Extract any nodes with
    in-degree > max(5, Q3 + (Q3 - Q1)) OR
    out-degree > max(5, Q3 + 4 * (Q3 - Q1))

Here Q1 and Q3 refer to one of either the in or out degree set of data.

The threshold for out-degree is higher because, in practice, certain graphs such as  "cifar-10 train" regress (convolution nodes are unfortunately extracted) with a lower out-degree threshold.

Updated screen diff integration tests.
Change: 135401763

francoisluus/tensorboard-supervise,ioeric/tensorboard,shakedel/tensorboard,shakedel/tensorboard,agrubb/tensorboard,ioeric/tensorboard,agrubb/tensorboard,tensorflow/tensorboard,shakedel/tensorboard,agrubb/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,shakedel/tensorboard,francoisluus/tensorboard-supervise,ioeric/tensorboard,shakedel/tensorboard,francoisluus/tensorboard-supervise,qiuminxu/tensorboard,qiuminxu/tensorboard,ioeric/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,qiuminxu/tensorboard,francoisluus/tensorboard-supervise,qiuminxu/tensorboard,agrubb/tensorboard,qiuminxu/tensorboard,ioeric/tensorboard,agrubb/tensorboard,francoisluus/tensorboard-supervise,tensorflow/tensorboard,qiuminxu/tensorboard,shakedel/tensorboard,ioeric/tensorboard,agrubb/tensorboard,francoisluus/tensorboard-supervise