Text this: Optimisation of Ensemble Learning Algorithms for Geotechnical Applications: A Mathematical Approach to Relative Density Prediction