Learning a Tree-Structured Ising Model in Order to Make Predictions