14 September 2020 1 9K Report

I have raw XRF spectra from soil samples with corresponding reference values of heavy metals. I want to build a calibration model with these data sets using a machine learning algorithm such as Support Vector Machine. However, the challenge I am faced with is how to build the code from scratch.

The procedure I desire to follow is:

  • Pre-processing the spectra (e.g. Scaling > Normalization > smoothing[Savitzy Golay] etc)
  • Data partitioning (preferably 70/30)
  • Building the calibration model and
  • Model validation.
  • I will gladly appreciate if anyone could accord me help with a link to a site detailing the systematic line of codes (either in R or Python) that I can follow to complete this task. Or if anyone has experience with building calibration models using XRF spectra, I will appreciate your help with the codes for my task.

    More Felix Nyarko's questions See All
    Similar questions and discussions