Unsupervised Learning For Passive Beamforming