This article presents an ultrawide bandpass filter structure developed along a notch band using a small rectangular impedance resonator. The proposed filter structure consists of a coupled rectangular resonator (CRR), open stub, and composited split ring resonator (CSRR) at the bottom of the structure. In-band and out-of-band properties are improved by the CRR and open stub. The notch band is obtained by placing CSRR below the rectangular resonator. A filter with a compact size of 0.15 × 0.10 λg is obtained at a lowered cutoff frequency of 3.0 GHz, where λg is the corresponding guided wavelength. The proposed structure has been constructed on 5880 Rogers substrate with a thickness of 0.787 mm and a dielectric constant of 2.2. Additionally, equivalent lumped parameters were obtained, and a lumped equivalent circuit was created to explain how the suggested filter operated. The Electromagnetic (EM)-simulated results are in good agreement with the circuit-simulated and measured result. The various machine learning approaches such as artificial neural network, K-nearest neighbour, decision tree, random forest (RF), and extreme gradient boosting algorithms are applied to optimize the design, in which RF algorithms achieve more than 90% accuracy for predicting the S parameters of the ultrawideband filter.