output inference results to csv