get_fit-methods function

------------------------------------------------------------------------------------ Get the fitted tree depending on the input x.