Note that a similar older version of such a constructor is removed in https://github.com/JuliaGNI/GeometricMachineLearning.jl/pull/181.