I much prefer attending a gym. I've got friends at the gym, we train together sometimes, chat (briefly) at other times. Some of these people I've met at the gym and weren't friends beforehand.
Frankly, I'd find a home gym a little boring and not very motivating.