How to bake a transparency map?

So I have a semi transparent object, and I’ve managed to make it semi transparent but how the heck do I back this into some sort of transparency/opacity map?

Thanks!

I’ve attached what it looks like and the nodes I’m using to do it here: