To use NMR spectra that contain noise as CNN input, you could use the following approach:
Here's some sample code to get you started:
main.m1139 chars42 lines
This code assumes that you have the input spectra in a variable called 'spectra', the corresponding clean spectra in a variable called 'clean_spectra', and the CN in the last convolutional layer used as a regression loss function. You will need to tweak this code to suit your specific needs.
gistlibby LogSnag