saves prediction data as file