A Neural Network Detector for Spectrum Sensing under Uncertainties