Integrate AI methods into RamanSPy . To integrate new techniques for spectral preprocessing and analysis, users can take advantage of the extensible architecture of RamanSPy and wrap models and algorithms into custom classes. For instance, one can create a new denoiser method based on a PyTorch model for denoising by simply creating a function, which defines how the model can be used to preprocess a generic intensity data array, and then wrapping the method within a PreprocessingStep instance.