Ashleigh Barty defeated Madison Keys while Danielle Collins saw off seventh seed Iga Swiatek for a meeting in the final.