Learning optimal styling