Assortment Optimization without Prediction: An End-to-end Framework with Transaction Data