Thus according to the McDiarmid inequality [1]}, with probability at least \(1-\delta \)  for any \(f\in \mathcal {F}\) , we have
\(\mathcal {L}(f) \le \widehat{\mathcal {L}}_{n}(f) + \frac{2C}{\sqrt{n}} + C\sqrt{\frac{\log \delta ^{-1}}{2n}}.\) 
