add function for saving predictions

This file computes the accuracy for multiview.

Usage: python testnet.py root_dir [num_view] [method] [top_n]