Similar Items: Toward Generalizable mmWave and Terahertz Deep Learning-Based Channel Prediction in 6G Networks